Reorganise

This commit is contained in:
Fern Garden 2025-05-12 13:47:47 +08:00
parent 4be4c0a719
commit 2722973e49
19 changed files with 161 additions and 255 deletions

View file

@ -0,0 +1,39 @@
- name: Set a hostname
become: true
ansible.builtin.hostname:
name: '{{ inventory_hostname.split(".")[0] | lower }}'
use: debian
- name: Set the timezone
become: true
community.general.timezone:
name: Australia/Perth
- name: Install some standard packages
become: true
apt:
update_cache: yes
pkg:
- avahi-daemon
- curl
- fish
- git
- libnss-mdns
- nnn
- rsync
- sudo
- tmux
- trash-cli
- name: Add 'fern' user
become: true
user:
name: fern
shell: /usr/bin/fish
- name: Set sudo rules
become: true
community.general.sudoers:
name: sudo
commands: ALL
user: fern