aboutsummaryrefslogtreecommitdiffstats
path: root/roles/radicale/templates/radicale.passwd.j2
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-04-09 15:03:39 +0800
committerAaron LI <aly@aaronly.me>2018-04-09 15:34:58 +0800
commit67dd56ab0d520abf01cdbdbe10b68f6289b6ecc7 (patch)
tree3bebd25c1265c0b6d5fe3f22cad7b70d503180f9 /roles/radicale/templates/radicale.passwd.j2
parent40f44a1f486116b8fcae7e307ec1bd82fe433bc6 (diff)
downloadansible-dfly-vps-67dd56ab0d520abf01cdbdbe10b68f6289b6ecc7.tar.bz2
Add radicale role: lightweight {Card,Cal}DAV server
WARNING: py36-radicale2 needs manual installation at the moment.
Diffstat (limited to 'roles/radicale/templates/radicale.passwd.j2')
-rw-r--r--roles/radicale/templates/radicale.passwd.j215
1 files changed, 15 insertions, 0 deletions
diff --git a/roles/radicale/templates/radicale.passwd.j2 b/roles/radicale/templates/radicale.passwd.j2
new file mode 100644
index 0000000..8c59c79
--- /dev/null
+++ b/roles/radicale/templates/radicale.passwd.j2
@@ -0,0 +1,15 @@
+#
+# Password for Nginx auth for Radicale.
+#
+# Aaron LI
+#
+
+# name:pass
+{% for user in radicale.users %}
+# user: {{ user.name }}
+{{ user.name }}:{{ user.pass | cryptpass }}
+{% for dev in user.devices|default([]) %}
+{{ user.name }}@{{ dev.name }}:{{ dev.pass | cryptpass }}
+{% endfor %}{# devices #}
+{% endfor %}{# user #}
+# EOF