forked from ansible-lockdown/RHEL9-CIS
updated to enable greater idempotence on filemounts
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
08eed981cc
commit
272ac4efb4
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@
|
||||||
src: "{{ item.device }}"
|
src: "{{ item.device }}"
|
||||||
fstype: "{{ item.fstype }}"
|
fstype: "{{ item.fstype }}"
|
||||||
state: present
|
state: present
|
||||||
opts: defaults,{% if rhel9cis_rule_1_1_7_2 %}nodev,{% endif %}{% if rhel9cis_rule_1_1_7_3 %}nosuid{% endif %}
|
opts: "{{ item.options }}{% if ('nodev' not in item.options and rhel9cis_rule_1_1_7_2) %},nodev{% endif %}{% if ('nosuid' not in item.options and rhel9cis_rule_1_1_7_3) %},nosuid{% endif %}"
|
||||||
loop: "{{ ansible_facts.mounts }}"
|
loop: "{{ ansible_facts.mounts }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.device }}"
|
label: "{{ item.device }}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue