mirror of
https://github.com/dev-sec/ansible-collection-hardening
synced 2024-11-10 09:14:18 +00:00
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 <hello@akikanellis.com>
This commit is contained in:
parent
dc432ba71c
commit
a15159d072
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
{{ ansible_managed | comment }}
|
||||
# Generated by Ansible role {{ ansible_role_name }}
|
||||
|
||||
{% for fs in os_unused_filesystems | difference(os_filesystem_whitelist) %}
|
||||
{% for fs in os_unused_filesystems | difference(os_filesystem_whitelist) | sort %}
|
||||
install {{fs}} /bin/true
|
||||
{% endfor %}
|
||||
|
|
Loading…
Reference in a new issue