diff --git a/ansible/playbooks/lab.yaml b/ansible/playbooks/lab.yaml index 07b52de..feaeb69 100644 --- a/ansible/playbooks/lab.yaml +++ b/ansible/playbooks/lab.yaml @@ -5,8 +5,8 @@ become: true roles: - - python + - python-install - sshd - - firewall + #- firewall - pikaur - #- zfs \ No newline at end of file + - zfs-install \ No newline at end of file diff --git a/ansible/roles/pikaur/tasks/main.yml b/ansible/roles/pikaur/tasks/main.yml index ec6d6c6..094897f 100644 --- a/ansible/roles/pikaur/tasks/main.yml +++ b/ansible/roles/pikaur/tasks/main.yml @@ -29,3 +29,8 @@ ansible.builtin.shell: cmd: makepkg -fsri chdir: /git/pikaur/ + +- name: update AUR cache + community.general.pacman: + update_cache: yes + executable: pikaur diff --git a/ansible/roles/python/tasks/main.yml b/ansible/roles/python-install/tasks/main.yml similarity index 100% rename from ansible/roles/python/tasks/main.yml rename to ansible/roles/python-install/tasks/main.yml diff --git a/ansible/roles/zfs-install/tasks/main.yml b/ansible/roles/zfs-install/tasks/main.yml new file mode 100644 index 0000000..6f7f9c2 --- /dev/null +++ b/ansible/roles/zfs-install/tasks/main.yml @@ -0,0 +1,9 @@ +--- +- name: Install ZFS DKMS module + community.general.pacman: + name: + - zfs-dkms + state: latest + executable: pikaur + update_cache: true + reason: explicit \ No newline at end of file