First commit
This commit is contained in:
commit
dc708aa3dd
11 changed files with 340 additions and 0 deletions
62
tasks/provisioning/distro/debian.yml
Normal file
62
tasks/provisioning/distro/debian.yml
Normal file
|
@ -0,0 +1,62 @@
|
|||
- name: Set a hostname
|
||||
ansible.builtin.hostname:
|
||||
name: '{{ inventory_hostname }}'
|
||||
use: debian
|
||||
|
||||
- name: Set the timezone
|
||||
community.general.timezone:
|
||||
name: Australia/Perth
|
||||
|
||||
- name: Add AARNet bookworm repository
|
||||
apt_repository:
|
||||
repo: deb https://mirror.aarnet.edu.au/debian bookworm main contrib
|
||||
state: present
|
||||
|
||||
- name: Add AARNet bookworm-updates repository
|
||||
apt_repository:
|
||||
repo: deb https://mirror.aarnet.edu.au/debian bookworm-updates main contrib
|
||||
state: present
|
||||
|
||||
- name: Add AARNet bookworm-security repository
|
||||
apt_repository:
|
||||
repo: deb https://mirror.aarnet.edu.au/debian-security bookworm-security main contrib
|
||||
state: present
|
||||
|
||||
- name: Update sources & upgrade
|
||||
apt:
|
||||
update_cache: true
|
||||
upgrade: dist
|
||||
|
||||
- name: Install some standard packages
|
||||
apt:
|
||||
pkg:
|
||||
- avahi-daemon
|
||||
- curl
|
||||
- fish
|
||||
- git
|
||||
- libnss-mdns
|
||||
- neovim
|
||||
- nnn
|
||||
- rsync
|
||||
- sudo
|
||||
|
||||
- name: Add fish nnn quitcd function
|
||||
ansible.builtin.copy:
|
||||
src: ./quitcd.fish
|
||||
dest: /etc/fish/functions/n.fish
|
||||
|
||||
- name: Make sure avahi-daemon is running
|
||||
systemd_service:
|
||||
state: started
|
||||
name: avahi-daemon
|
||||
|
||||
- name: Add 'fern' user
|
||||
user:
|
||||
name: fern
|
||||
shell: /usr/bin/fish
|
||||
|
||||
- name: Set sudo rules
|
||||
community.general.sudoers:
|
||||
name: sudo
|
||||
commands: ALL
|
||||
user: fern
|
Loading…
Add table
Add a link
Reference in a new issue