Ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
664 B

---
- name: Install dependencies
apt:
name:
- libcapture-tiny-perl
- libconfig-inifiles-perl
- pv
- lzop
- mbuffer
tags: zfs
- name: Install sanoid
apt: deb=http://ftp.fr.debian.org/debian/pool/main/s/sanoid/sanoid_2.0.3-4_all.deb
tags: zfs
- name: Setup sanoid service and timer
template: src=sanoid.{{ item }}.j2 dest=/etc/systemd/system/sanoid.{{ item }}
loop:
- service
- timer
register: zfs_sanoid_units
notify: restart sanoid
tags: zfs
- name: Reload systemd
systemd: daemon_reload=True
when: zfs_sanoid_units.results | selectattr('changed','equalto',True) | list | length > 0
tags: zfs