infrastructure/ansible/roles/zfs/tasks/main.yml
Jake Howard 2af9f8529d
All checks were successful
/ terraform (push) Successful in 46s
/ ansible (push) Successful in 1m53s
Fix new ansible-lint errors
Quite a few changes here, hopefully they work!
2023-06-15 15:16:19 +01:00

26 lines
549 B
YAML

- name: Set module options
template:
src: files/zfs-modprobe.conf
dest: /etc/modprobe.d/zfs.conf
mode: "0644"
become: true
- name: ZFS Scrub
cron:
name: scrub {{ item }} ZFS pool
hour: 2
minute: 0
weekday: 5
job: zpool scrub {{ item }}
become: true
loop: "{{ zpools_to_scrub }}"
- name: Give user passwordless access to ZFS commands
lineinfile:
path: /etc/sudoers
line: "{{ me.user }} ALL=(ALL) NOPASSWD: /usr/sbin/zfs,/usr/sbin/zpool"
become: true
- name: Sanoid
include_tasks: sanoid.yml