diff --git a/plays/root.yml b/plays/root.yml index 342024a9bd9420de9d8e9ab8ef95cc76ace13961..cae8d8732935587e3587e490dc6b26842cb6b60d 100755 --- a/plays/root.yml +++ b/plays/root.yml @@ -1,5 +1,9 @@ #!/usr/bin/env ansible-playbook --- +- hosts: tealc.adm.crans.org + roles: + - baie + - hosts: virtu roles: - proxmox-apt-sources diff --git a/roles/baie/tasks/main.yml b/roles/baie/tasks/main.yml new file mode 100644 index 0000000000000000000000000000000000000000..45a7aa8448f1e9c4324ff5beb5bd57a2104d7938 --- /dev/null +++ b/roles/baie/tasks/main.yml @@ -0,0 +1,25 @@ +--- +- name: Configure Debian backports repository + template: + src: apt/sources.list.d/backports.j2 + dest: /etc/apt/sources.list.d/backports + +- name: Install ZFS + apt: + update_cache: true + default_release: "{{ ansible_lsb.codename }}-backports" + name: + - zfs-dkms + - zfsutils-linux + register: apt_result + retries: 3 + until: apt_result is succeeded + +- name: Install ifenslave + apt: + update_cache: true + name: + - ifenslave + register: apt_result + retries: 3 + until: apt_result is succeeded diff --git a/roles/baie/templates/apt/sources.list.d/backports.j2 b/roles/baie/templates/apt/sources.list.d/backports.j2 new file mode 100644 index 0000000000000000000000000000000000000000..6326b3e479e0fdc2fe3f69a4312f06057f4c9d54 --- /dev/null +++ b/roles/baie/templates/apt/sources.list.d/backports.j2 @@ -0,0 +1 @@ +deb {{ debian_mirror }} {{ ansible_lsb.codename }}-backports main contrib non-free