- name: Start ZFS scrub hosts: all become: yes user: root tasks: - name: Get list of ZFS pools shell: zpool list -H -o name | xargs -n1 zpool scrub