Files
ansible-collection-hardening/roles/os_hardening/templates/etc/modprobe.d/modprobe.j2
T
Aki Kanellis a15159d072 Make disabling unused filesystems idempotent
The `os_unused_filesystems` was lacking sorting, making the task not
idempotent. This was especially apparent and random in Molecule tests
when this collection was added as a dependency.

Signed-off-by: Aki Kanellis <[email protected]>
2023-11-19 19:57:31 +00:00

7 lines
206 B
Django/Jinja

{{ ansible_managed | comment }}
# Generated by Ansible role {{ ansible_role_name }}
{% for fs in os_unused_filesystems | difference(os_filesystem_whitelist) | sort %}
install {{fs}} /bin/true
{% endfor %}