ansible/tasks/postfix_basic.yml

26 lines
769 B
YAML
Raw Normal View History

- name: install postfix
package: name=postfix state=present
tags:
- postfix
2013-05-21 20:15:34 +00:00
- packages
- name: /etc/postfix/main.cf
copy: src={{ item }} dest=/etc/postfix/main.cf
with_first_found:
- "{{ postfix_maincf }}"
- "{{ 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"
notify:
2012-11-19 22:06:46 +00:00
- restart postfix
tags:
- postfix
- config
2012-11-19 22:06:46 +00:00
- name: enable postfix to start
service: name=postfix state=started enabled=true
2013-05-21 20:15:34 +00:00
tags:
- service