Give myself passwordless sudo access to zfs stuff
This is needed for syncoid pulls
This commit is contained in:
parent
c3053e9378
commit
0c6e9969bc
1 changed files with 6 additions and 0 deletions
|
@ -12,5 +12,11 @@
|
||||||
become: true
|
become: true
|
||||||
loop: "{{ zpools_to_scrub }}"
|
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
|
- name: Sanoid
|
||||||
include: sanoid.yml
|
include: sanoid.yml
|
||||||
|
|
Loading…
Reference in a new issue