From 86ed34fa46f389f346fd6cb1b26c60f0b9aece23 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Fri, 2 Aug 2019 09:24:16 +0200 Subject: postfix-satellite: setting compatability_level=2. --- ansible/roles/postfix-satellite/tasks/postfix-satellite.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ansible/roles/postfix-satellite/tasks') 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 -- cgit v1.2.3