From 450d60cd46ef2a52e5cf1b8fc567e9806a36814a Mon Sep 17 00:00:00 2001 From: michael Date: Sun, 4 Sep 2022 00:20:27 +1200 Subject: [PATCH] start zfs install --- ansible/playbooks/lab.yaml | 6 +++--- ansible/roles/pikaur/tasks/main.yml | 5 +++++ ansible/roles/{python => python-install}/tasks/main.yml | 0 ansible/roles/zfs-install/tasks/main.yml | 9 +++++++++ 4 files changed, 17 insertions(+), 3 deletions(-) rename ansible/roles/{python => python-install}/tasks/main.yml (100%) create mode 100644 ansible/roles/zfs-install/tasks/main.yml 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