Feat/rights from file #2

Merged
pulsar merged 2 commits from feat/rights-from-file into main 2026-11-08 16:46:57 +00:00
Showing only changes of commit 9bbf9d90bd - Show all commits
+4
View File
@@ -1,5 +1,9 @@
# {{ ansible_managed }} # {{ ansible_managed }}
{% for user in radicale_users %} {% for user in radicale_users %}
{% if user.password is match('^\$(apr1|2[abxy]?|argon2(i|d|id)|5|6)\$') %}
{{ user.name }}:{{ user.password }} {{ user.name }}:{{ user.password }}
{% else %}
{{ user.name }}:{{ user.password | password_hash('sha512', ((user.name ~ '@' ~ inventory_hostname) | hash('sha256'))[:16]) }}
{% endif %}
{% endfor %} {% endfor %}