parent
62b5ef0b14
commit
6916d5651f
6 changed files with 52 additions and 9 deletions
@ -1,4 +1,5 @@ |
|||||||
--- |
--- |
||||||
dependencies: |
dependencies: |
||||||
- role: repo_zfs |
- role: repo_zfs |
||||||
|
when: ansible_os_family == 'RedHat' |
||||||
- role: zfs_common |
- role: zfs_common |
||||||
|
@ -0,0 +1,30 @@ |
|||||||
|
--- |
||||||
|
|
||||||
|
- 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 |
||||||
|
|
@ -0,0 +1,10 @@ |
|||||||
|
--- |
||||||
|
|
||||||
|
- name: Install packages |
||||||
|
yum: |
||||||
|
name: |
||||||
|
- zfs |
||||||
|
- sanoid |
||||||
|
when: ansible_os_family == 'RedHat' |
||||||
|
tags: zfs |
||||||
|
|
Loading…
Reference in new issue