Sort the mounts so they are idempotent

This commit is contained in:
Jason Rothstein 2021-07-20 00:37:04 +00:00
parent a171d60c44
commit d8213d2c36

View File

@ -720,8 +720,8 @@ OnAccessPrevention yes
# Default: disabled
#OnAccessMountPath /
#OnAccessMountPath /home/user
{% for item in ansible_mounts %}
OnAccessMountPath {{ item.mount }}
{% for item in ansible_mounts|map('mount')|sort %}
OnAccessMountPath {{ item }}
{% endfor %}
# With this option you can whitelist the root UID (0). Processes run under