Skip to content

Commit

Permalink
Added selectattr value to select only nfs mounts
Browse files Browse the repository at this point in the history
Signed-off-by: layluke <[email protected]>
  • Loading branch information
layluke committed Sep 28, 2024
1 parent 00c0b2e commit 8af2759
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks/Cat2/RHEL-09-23xxxx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
path: "{{ item.mount }}"
src: "{{ item.device }}"
state: present
loop: "{{ ansible_facts.mounts }}"
loop: "{{ ansible_facts.mounts | selectattr('fstype', 'equalto', 'nfs') | list }}"
loop_control:
label: "{{ item.device }}"

Expand All @@ -240,7 +240,7 @@
path: "{{ item.mount }}"
src: "{{ item.device }}"
state: present
loop: "{{ ansible_facts.mounts }}"
loop: "{{ ansible_facts.mounts | selectattr('fstype', 'equalto', 'nfs') | list }}"
loop_control:
label: "{{ item.device }}"

Expand All @@ -265,7 +265,7 @@
path: "{{ item.mount }}"
src: "{{ item.device }}"
state: present
loop: "{{ ansible_facts.mounts }}"
loop: "{{ ansible_facts.mounts | selectattr('fstype', 'equalto', 'nfs') | list }}"
loop_control:
label: "{{ item.device }}"

Expand Down

0 comments on commit 8af2759

Please sign in to comment.