From bced739ca27987d8b88701bfee7ae3da6be88166 Mon Sep 17 00:00:00 2001 From: AntonyGowland <36728441+AntonyGowland@users.noreply.github.com> Date: Tue, 5 Nov 2024 14:23:45 +0000 Subject: [PATCH] squash commits --- .../group_vars/environment_name_nomis_data_hub_production.yml | 1 + ansible/roles/filesystems/tasks/mount.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/ansible/group_vars/environment_name_nomis_data_hub_production.yml b/ansible/group_vars/environment_name_nomis_data_hub_production.yml index 42498ffa3..46bb6d633 100644 --- a/ansible/group_vars/environment_name_nomis_data_hub_production.yml +++ b/ansible/group_vars/environment_name_nomis_data_hub_production.yml @@ -14,6 +14,7 @@ app_filesystems_mount: opts: vers=3.0,_netdev,nofail,uid=10002,gid=10002,dir_mode=0755,file_mode=0755,credentials=/root/.filesystems/{{ filesystems_domain_name_fqdn }}.creds src: //PDPDW00057.azure.hmpp.root/NOMS_Extracts_PD$ metric_dimension: NOMS_Extracts_PD + state: absent filesystems_domains: azure.hmpp.root: 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 }}"