Remove unnecessary which

`cron` doesn't need a full path
This commit is contained in:
Jake Howard 2021-06-25 20:57:19 +01:00
parent 50c5ed68e3
commit b82e87c04b
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -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 }}"