homelab/roles/base/tasks/system.yml

27 lines
603 B
YAML

- name: Install useful software
apt:
name: "{{ packages }}"
state: present
update_cache: true
- name: Manage root authorized_keys
template:
src: authorized_keys.j2
dest: /root/.ssh/authorized_keys
when: authorized_keys is defined
- name: Install btrfs-tools
apt:
name: btrfs-tools
state: present
when: btrfs_support is defined and btrfs_support | bool == true
- name: Manage filesystem mounts
mount:
path: "{{ item.path }}"
src: "UUID={{ item.uuid }}"
fstype: "{{ item.fstype }}"
state: mounted
loop: "{{ mounts }}"
when: mounts is defined