diff options
Diffstat (limited to 'ansible/plays')
-rw-r--r-- | ansible/plays/postfix-satellite.yml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ansible/plays/postfix-satellite.yml b/ansible/plays/postfix-satellite.yml new file mode 100644 index 0000000..af77d17 --- /dev/null +++ b/ansible/plays/postfix-satellite.yml @@ -0,0 +1,19 @@ +- 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\\]" |