diff options
Diffstat (limited to 'ansible/all.yml')
-rw-r--r-- | ansible/all.yml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ansible/all.yml b/ansible/all.yml index 86b0688..99f0d6f 100644 --- a/ansible/all.yml +++ b/ansible/all.yml @@ -11,11 +11,27 @@ - knot roles: - postfix + - dovecot - hosts: - all !knot roles: - postfix-satellite + vars: + username: "{{ ansible_hostname }}.trygvis.io" + postfix: + sasl_password: + - host: "[trygvis.io]:587" + username: "{{ username }}" + password: "{{ dovecot__passwords[username] }}" + + tasks: + - tags: postfix-satellite + become: yes + lineinfile: + dest: /etc/postfix/sasl_passwd + state: absent + regex: "^\\[knot.trygvis.io\\]" - hosts: - linode-dns-update |