aboutsummaryrefslogtreecommitdiff
path: root/ansible/plays
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-08-01 13:32:01 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2019-08-08 09:03:13 +0200
commit8070c0cf9aa181f98d52407f053b941f08c16613 (patch)
treed89ef7c20977964fc6be01b2d29e033e1c5a4e6e /ansible/plays
parentfe4b8b3a499270df23b1ac3f0d8ec17e22f055ae (diff)
downloadinfra-8070c0cf9aa181f98d52407f053b941f08c16613.tar.gz
infra-8070c0cf9aa181f98d52407f053b941f08c16613.tar.bz2
infra-8070c0cf9aa181f98d52407f053b941f08c16613.tar.xz
infra-8070c0cf9aa181f98d52407f053b941f08c16613.zip
postfix-satellite:
o Removing keys default_transport and relay_transport. o Moving postfix-satellite to its own file.
Diffstat (limited to 'ansible/plays')
-rw-r--r--ansible/plays/postfix-satellite.yml19
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\\]"