diff --git a/tasks/config_univention.yml b/tasks/config_univention.yml index 644b36e..8358627 100644 --- a/tasks/config_univention.yml +++ b/tasks/config_univention.yml @@ -1,5 +1,12 @@ --- - block: + - name: Set postfix settings to registry + ucr: + path: "{{ item.path }}" + value: "{{ item.value }}" + state: "{{ item.state | default('present') }}" + loop: "{{ __postfix_registry_settings }}" + - name: Create smtp_auth template: src: etc/postfix/sasl_passwd.j2 diff --git a/vars/univention.yml b/vars/univention.yml index 6b748ef..1698f62 100644 --- a/vars/univention.yml +++ b/vars/univention.yml @@ -1,3 +1,9 @@ --- __postfix_relay_packages: - postfix + +__postfix_registry_settings: + - path: "mail/relayhost" + value: "{{ postfix_relay_relayhost }}" + - path: "mail/relayauth" + value: "yes"