diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-01-02 10:57:04 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-01-02 10:57:04 +0100 |
commit | 62ff27b05167118c4fa9b5b6b39300041acf80da (patch) | |
tree | 8c5e75a4cf3d43535857ae15d9ad6e3b2893dffe /ansible/roles/dovecot/tasks | |
parent | 1f3564a99e21af5bd4ac4d11fa3ec7c3885e5208 (diff) | |
download | infra-62ff27b05167118c4fa9b5b6b39300041acf80da.tar.gz infra-62ff27b05167118c4fa9b5b6b39300041acf80da.tar.bz2 infra-62ff27b05167118c4fa9b5b6b39300041acf80da.tar.xz infra-62ff27b05167118c4fa9b5b6b39300041acf80da.zip |
wireguard: Adding conflatorio.
dovecot: adding password management
postfix-satellite: removing apt update
ufw: handling missing variables. Allow ssh by default.
all.yml: taking passwords for postfix-satellite from dovecot.
Diffstat (limited to 'ansible/roles/dovecot/tasks')
-rw-r--r-- | ansible/roles/dovecot/tasks/main.yml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ansible/roles/dovecot/tasks/main.yml b/ansible/roles/dovecot/tasks/main.yml new file mode 100644 index 0000000..1ee3b8d --- /dev/null +++ b/ansible/roles/dovecot/tasks/main.yml @@ -0,0 +1,20 @@ +- tags: + - dovecot + - packages + become: yes + apt: + name: python-passlib + install_recommends: no + +- tags: + - dovecot + - update-passwords + become: yes + with_dict: "{{ dovecot__passwords }}" + no_log: yes + htpasswd: + path: /etc/dovecot/users + name: "{{ item.key }}" + password: "{{ item.value }}" + crypt_scheme: sha512_crypt + state: "{{ 'absent' if not item.value or item.value.strip() == '' else 'present' }}" |