2012-11-19 21:36:32 +00:00
|
|
|
- name: install postfix
|
2017-10-09 00:38:19 +02:00
|
|
|
package: name=postfix state=present
|
2012-11-19 22:02:58 +00:00
|
|
|
tags:
|
|
|
|
- postfix
|
2013-05-21 20:15:34 +00:00
|
|
|
- packages
|
2012-11-19 21:36:32 +00:00
|
|
|
|
|
|
|
- name: /etc/postfix/main.cf
|
2016-01-06 21:25:10 +00:00
|
|
|
copy: src={{ item }} dest=/etc/postfix/main.cf
|
2013-05-20 20:25:00 +00:00
|
|
|
with_first_found:
|
2014-01-01 19:15:11 +00:00
|
|
|
- "{{ postfix_maincf }}"
|
2017-04-13 15:46:14 +00:00
|
|
|
- "{{ roles_path }}/base/files/postfix/main.cf/main.cf.{{ ansible_fqdn }}"
|
|
|
|
- "{{ roles_path }}/base/files/postfix/main.cf/main.cf.{{ inventory_hostname }}"
|
|
|
|
- "{{ roles_path }}/base/files/postfix/main.cf/main.cf.{{ host_group }}"
|
|
|
|
- "{{ roles_path }}/base/files/postfix/main.cf/main.cf.{{ postfix_group }}"
|
|
|
|
- "{{ roles_path }}/base/files/postfix/main.cf/main.cf"
|
2012-11-19 21:36:32 +00:00
|
|
|
notify:
|
2012-11-19 22:06:46 +00:00
|
|
|
- restart postfix
|
2012-11-19 21:36:32 +00:00
|
|
|
tags:
|
|
|
|
- postfix
|
|
|
|
- config
|
|
|
|
|
2012-11-19 22:06:46 +00:00
|
|
|
- name: enable postfix to start
|
2017-04-13 01:37:21 +00:00
|
|
|
service: name=postfix state=started enabled=true
|
2013-05-21 20:15:34 +00:00
|
|
|
tags:
|
|
|
|
- service
|