diff --git a/ansible/roles/filesystems/tasks/mount.yml b/ansible/roles/filesystems/tasks/mount.yml index f89edb1a7..6e9b1be95 100644 --- a/ansible/roles/filesystems/tasks/mount.yml +++ b/ansible/roles/filesystems/tasks/mount.yml @@ -34,6 +34,7 @@ user: root minute: "*/5" job: "/usr/local/bin/filesystem_keepalive.sh '{{ item.src }}' '{{ item.metric_dimension }}' 2>&1 | logger -p local3.info -t filesystem_keepalive.sh" + state: "{{ item.state | default('present') }}" when: item.metric_dimension is defined and item.metric_dimension|length > 0 loop_control: label: "{{ item.dir }}"