1
0
Fork 0

Add step to configure radicale

This commit is contained in:
Daniele Tricoli 2021-12-21 23:40:59 +01:00
parent f32cbb3310
commit b22fe6da4d
1 changed files with 18 additions and 1 deletions

View File

@ -3,10 +3,27 @@
- name: install radicale
apt:
name: radicale
name:
- radicale
- uwsgi
- uwsgi-plugin-python3
state: present
update_cache: true
cache_valid_time: 3600
- name: configure radicale
lineinfile:
path: /etc/radicale/config
regexp: "{{ item.regexp }}"
line: "{{ item.line }}"
state: present
with_items:
- regexp: "^#?type = remote_user"
line: "type = htpasswd"
- regexp: "^#?htpasswd_filename = /etc/radicale/users"
line: "htpasswd_filename = /etc/radicale/users"
- regexp: "^#?htpasswd_encryption = md5"
line: "htpasswd_encryption = bcrypt"
become: "{{ radicale_become }}"
become_user: "{{ radicale_become_user }}"