Infra/ansible/roles/zfs/tasks/install.yml

16 lines
336 B
YAML
Raw Permalink Normal View History

2022-04-15 15:51:58 +02:00
- name: Install packages
2022-10-19 00:16:16 +02:00
become: "{{ do_become }}"
2022-04-15 15:51:58 +02:00
ansible.builtin.apt:
name: "{{ item }}={{ zfs_ver }}"
state: present
with_items:
- zfsutils-linux
- name: Hold ZFS version
2022-10-19 00:16:16 +02:00
become: "{{ do_become }}"
2022-04-15 15:51:58 +02:00
ansible.builtin.dpkg_selections:
name: "{{ item }}"
selection: "hold"
with_items:
- zfsutils-linux