2012-11-19 22:36:32 +01:00
|
|
|
- name: install postfix
|
2014-10-29 04:38:40 +01:00
|
|
|
action: yum pkg=postfix state=present
|
2012-11-19 23:02:58 +01:00
|
|
|
tags:
|
|
|
|
- postfix
|
2013-05-21 22:15:34 +02:00
|
|
|
- packages
|
2012-11-19 22:36:32 +01:00
|
|
|
|
|
|
|
- name: /etc/postfix/main.cf
|
2014-01-01 20:15:11 +01:00
|
|
|
action: copy src={{ item }} dest=/etc/postfix/main.cf
|
2013-05-20 22:25:00 +02:00
|
|
|
with_first_found:
|
2014-01-01 20:15:11 +01:00
|
|
|
- "{{ postfix_maincf }}"
|
2014-01-01 21:54:28 +01:00
|
|
|
- "{{ roles }}/base/files/postfix/main.cf.{{ ansible_fqdn }}"
|
|
|
|
- "{{ roles }}/base/files/postfix/main.cf.{{ inventory_hostname }}"
|
|
|
|
- "{{ roles }}/base/files/postfix/main.cf.{{ host_group }}"
|
|
|
|
- "{{ roles }}/base/files/postfix/main.cf.{{ postfix_group }}"
|
2014-06-16 03:10:58 +02:00
|
|
|
- "{{ roles }}/base/files/postfix/main.cf/main.cf"
|
2012-11-19 22:36:32 +01:00
|
|
|
notify:
|
2012-11-19 23:06:46 +01:00
|
|
|
- restart postfix
|
2012-11-19 22:36:32 +01:00
|
|
|
tags:
|
|
|
|
- postfix
|
|
|
|
- config
|
|
|
|
|
2012-11-19 23:06:46 +01:00
|
|
|
- name: enable postfix to start
|
|
|
|
action: service name=postfix state=running enabled=true
|
2013-05-21 22:15:34 +02:00
|
|
|
tags:
|
|
|
|
- service
|