diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-08-02 09:24:16 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-08-08 09:03:13 +0200 |
commit | 86ed34fa46f389f346fd6cb1b26c60f0b9aece23 (patch) | |
tree | 4623802f3c037f7cbdbc093b8414f5dc8488f108 | |
parent | 48ec7b841f853e4ffd8a82e61ed063fd8c5b2e87 (diff) | |
download | infra-86ed34fa46f389f346fd6cb1b26c60f0b9aece23.tar.gz infra-86ed34fa46f389f346fd6cb1b26c60f0b9aece23.tar.bz2 infra-86ed34fa46f389f346fd6cb1b26c60f0b9aece23.tar.xz infra-86ed34fa46f389f346fd6cb1b26c60f0b9aece23.zip |
postfix-satellite: setting compatability_level=2.
-rw-r--r-- | ansible/roles/postfix-satellite/tasks/postfix-satellite.yml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ansible/roles/postfix-satellite/tasks/postfix-satellite.yml b/ansible/roles/postfix-satellite/tasks/postfix-satellite.yml index 2303523..1939b57 100644 --- a/ansible/roles/postfix-satellite/tasks/postfix-satellite.yml +++ b/ansible/roles/postfix-satellite/tasks/postfix-satellite.yml @@ -15,7 +15,7 @@ lineinfile: dest: /etc/postfix/main.cf line: "{{ (item.key + ' = ' + item.value) if state=='present' else None }}" - regexp: "^{{ item.key }} =" + regexp: "^{{ item.key }}" state: "{{ state }}" vars: state: "{{ item.state|default('present') }}" @@ -48,6 +48,8 @@ state: absent - key: "relay_transport" state: absent + - key: "compatibility_level" + value: "2" - name: Create /etc/postfix/sasl_passwd tags: postfix-satellite-config |