evolinux_base/postfix: add some variables

* myhostname
* mydestination
* myorigin
This commit is contained in:
Jérémy Lecour 2016-12-30 10:40:18 +01:00 committed by Jérémy Lecour
parent 999e98cc29
commit 8a20ec5ca2
3 changed files with 7 additions and 0 deletions

View file

@ -25,6 +25,9 @@ Main variables are :
* `evolinux_additional_packages`: optional additional packages to install (default: `[]`)
* `evolinux_postfix_slow_transports_enabled`: configure slow transports (default: `True`) ;
* `evolinux_postfix_remove_exim`: remove Exim4 packages (default: `True`) ;
* `evolinux_postfix_myorigin`: `myorigin` variable for Postfix (default: value of `ansible_fqdn`) ;
* `evolinux_postfix_myhostname`: `myhostname` variable for Postfix (default: value of `ansible_fqdn`) ;
* `evolinux_postfix_mydestination`: `mydestination` variable for Postfix (default: `$myhostname`) ;
* `evolinux_ssh_password_auth_addresses`: list of addresses that can authenticate with a password (default: `[]`)
* `evolinux_ssh_disable_root`: disable SSH access for root (default: `True`)

View file

@ -22,6 +22,8 @@ evolinux_apt_remove_aptitude: True
# postfix
evolinux_postfix_myorigin: "{{ ansible_fqdn }}"
evolinux_postfix_myhostname: "{{ ansible_fqdn }}"
evolinux_postfix_mydestination: "$myhostname"
evolinux_postfix_slow_transports_enabled: True
evolinux_postfix_remove_exim: True

View file

@ -18,6 +18,8 @@
line: "{{ item.key }} = {{ item.value }}"
with_items:
- { key: "myorigin", value: "{{ evolinux_postfix_myorigin }}" }
- { key: "myhostname", value: "{{ evolinux_postfix_myhostname }}" }
- { key: "mydestination", value: "{{ evolinux_postfix_mydestination }}" }
- { key: "disable_vrfy_command", value: "yes" }
notify: reload postfix
tags: