Give myself passwordless sudo access to zfs stuff

This is needed for syncoid pulls
This commit is contained in:
Jake Howard 2021-01-09 21:36:09 +00:00
parent c3053e9378
commit 0c6e9969bc
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -12,5 +12,11 @@
become: true
loop: "{{ zpools_to_scrub }}"
- name: Give user passwordless access to ZFS commands
lineinfile:
path: /etc/sudoers
line: "{{ user }} ALL=(ALL) NOPASSWD: /usr/sbin/zfs,/usr/sbin/zpool"
become: true
- name: Sanoid
include: sanoid.yml