Skip to content

Commit

Permalink
Merge pull request #15 from MiLk/fixes/periodic-fsck
Browse files Browse the repository at this point in the history
Don't fail if disable_periodic_fsck is not defined
  • Loading branch information
MiLk authored Apr 10, 2017
2 parents b667400 + 45dd2ca commit 90c4b79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
- name: "Disable periodic fsck on ext3 or ext4 formatted disks"
shell: tune2fs -c0 -i0 {{ item.disk }}1
with_items: '{{ disk_additional_disks }}'
when: "disk_additional_disks and ( item.fstype == 'ext4' or item.fstype == 'ext3' ) and item.disable_periodic_fsck|bool"
when: "disk_additional_disks and ( item.fstype == 'ext4' or item.fstype == 'ext3' ) and item.disable_periodic_fsck|default(false)|bool"
tags: ['disk']

- name: "Ensure the mount directory exists"
Expand Down

0 comments on commit 90c4b79

Please sign in to comment.