ansible/tasks/postfix_basic.yml

26 lines
608 B
YAML
Raw Normal View History

- name: install postfix
action: yum pkg=postfix state=installed
tags:
- postfix
2013-05-21 20:15:34 +00:00
- packages
- name: /etc/postfix/main.cf
action: copy src=$item dest=/etc/postfix/main.cf
with_first_found:
- $postfix_maincf
- $files/postfix/main.cf.${ansible_fqdn}
- $files/postfix/main.cf.${inventory_hostname}
- $files/postfix/main.cf.${host_group}
- $files/postfix/main.cf.${postfix_group}
- $files/postfix/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
action: service name=postfix state=running enabled=true
2013-05-21 20:15:34 +00:00
tags:
- service