From 76880c855b027d8c35897441f289f39d4d13b22b Mon Sep 17 00:00:00 2001 From: AntonyGowland <36728441+AntonyGowland@users.noreply.github.com> Date: Tue, 5 Nov 2024 11:48:42 +0000 Subject: [PATCH] addstate --- ansible/roles/filesystems/tasks/mount.yml | 1 + 1 file changed, 1 insertion(+) 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 }}"