Remove unnecessary which
`cron` doesn't need a full path
This commit is contained in:
parent
50c5ed68e3
commit
b82e87c04b
1 changed files with 1 additions and 9 deletions
|
@ -5,21 +5,13 @@
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
- name: Locate zpool command
|
|
||||||
command:
|
|
||||||
cmd: which zpool
|
|
||||||
strip_empty_ends: true
|
|
||||||
register: which_zpool
|
|
||||||
changed_when: false
|
|
||||||
become: true
|
|
||||||
|
|
||||||
- name: ZFS Scrub
|
- name: ZFS Scrub
|
||||||
cron:
|
cron:
|
||||||
name: scrub {{ item }} ZFS pool
|
name: scrub {{ item }} ZFS pool
|
||||||
hour: 5
|
hour: 5
|
||||||
minute: 0
|
minute: 0
|
||||||
weekday: 5
|
weekday: 5
|
||||||
job: "{{ which_zpool.stdout }} scrub {{ item }}"
|
job: zpool scrub {{ item }}
|
||||||
become: true
|
become: true
|
||||||
loop: "{{ zpools_to_scrub }}"
|
loop: "{{ zpools_to_scrub }}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue