summaryrefslogtreecommitdiff
path: root/ansible/all.yml
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-01-02 10:57:04 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2019-01-02 10:57:04 +0100
commit62ff27b05167118c4fa9b5b6b39300041acf80da (patch)
tree8c5e75a4cf3d43535857ae15d9ad6e3b2893dffe /ansible/all.yml
parent1f3564a99e21af5bd4ac4d11fa3ec7c3885e5208 (diff)
downloadinfra-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/all.yml')
-rw-r--r--ansible/all.yml16
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