From 3c962eb1086123526608470fbc44ad65b8c05870 Mon Sep 17 00:00:00 2001 From: layluke Date: Thu, 3 Oct 2024 14:08:58 -0400 Subject: [PATCH] excluding autofs filessytems, adding line to 231060 Signed-off-by: layluke --- tasks/Cat2/RHEL-09-23xxxx.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tasks/Cat2/RHEL-09-23xxxx.yml b/tasks/Cat2/RHEL-09-23xxxx.yml index 0cf5706..e67df39 100644 --- a/tasks/Cat2/RHEL-09-23xxxx.yml +++ b/tasks/Cat2/RHEL-09-23xxxx.yml @@ -173,7 +173,6 @@ - name: "MEDIUM | RHEL-09-231060 | PATCH | RHEL 9 must be configured so that the Network File System (NFS) is configured to use RPCSEC_GSS." when: - rhel_09_231060 - - ansible_facts['mounts']| selectattr('fstype', '==', 'nfs') - "'nfs-utils' in ansible_facts.packages" - rhel9stig_disruption_high tags: @@ -190,7 +189,7 @@ path: "{{ item.mount }}" src: "{{ item.device }}" state: present - loop: "{{ ansible_facts.mounts }}" + loop: "{{ ansible_facts.mounts | selectattr('fstype', 'contains', 'nfs') | rejectattr('fstype', 'equalto', 'autofs') | list }}" loop_control: label: "{{ item.device }}" @@ -214,7 +213,7 @@ path: "{{ item.mount }}" src: "{{ item.device }}" state: present - loop: "{{ ansible_facts.mounts | selectattr('fstype', 'contains', 'nfs') | list }}" + loop: "{{ ansible_facts.mounts | selectattr('fstype', 'contains', 'nfs') | rejectattr('fstype', 'equalto', 'autofs') | list }}" loop_control: label: "{{ item.device }}" @@ -238,7 +237,7 @@ path: "{{ item.mount }}" src: "{{ item.device }}" state: present - loop: "{{ ansible_facts.mounts | selectattr('fstype', 'contains', 'nfs') | list }}" + loop: "{{ ansible_facts.mounts | selectattr('fstype', 'contains', 'nfs') | rejectattr('fstype', 'equalto', 'autofs') | list }}" loop_control: label: "{{ item.device }}" @@ -262,7 +261,7 @@ path: "{{ item.mount }}" src: "{{ item.device }}" state: present - loop: "{{ ansible_facts.mounts | selectattr('fstype', 'contains', 'nfs') | list }}" + loop: "{{ ansible_facts.mounts | selectattr('fstype', 'contains', 'nfs') | rejectattr('fstype', 'equalto', 'autofs') | list }}" loop_control: label: "{{ item.device }}"