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"
|
||||
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
|
||||
cron:
|
||||
name: scrub {{ item }} ZFS pool
|
||||
hour: 5
|
||||
minute: 0
|
||||
weekday: 5
|
||||
job: "{{ which_zpool.stdout }} scrub {{ item }}"
|
||||
job: zpool scrub {{ item }}
|
||||
become: true
|
||||
loop: "{{ zpools_to_scrub }}"
|
||||
|
||||
|
|
Loading…
Reference in a new issue