Files
ansible-role-common/tasks/postfix.yml
Farhad Shahbazi 76360a0d13 whitespace cleanup
2016-10-27 08:51:47 +02:00

18 lines
437 B
YAML

---
- name: install postfix
apt: name="postfix" state=present
tags: ['common', 'postfix']
- name: postfix config
template: dest="/etc/postfix/{{ item }}" src="postfix/{{ item }}.j2" owner=root group=root mode=0644
with_items:
- main.cf
- master.cf
notify: restart mailer
tags: ['common', 'postfix']
- name: postfix - start and enable
service: name=postfix state=started enabled=yes
tags: ['common', 'postfix']