ansible-role-postfix_mta/tasks/main.yml

25 lines
447 B
YAML
Raw Normal View History

2019-03-05 12:44:14 +00:00
---
2019-03-07 08:10:54 +00:00
- name: install packages
2021-08-20 16:20:55 +00:00
ansible.builtin.package:
name:
2019-03-07 08:10:54 +00:00
- postfix
- bsd-mailx
2019-03-05 12:44:14 +00:00
tags: postfix
- name: copy file configuration
2021-08-20 16:20:55 +00:00
ansible.builtin.template:
2019-03-05 12:44:14 +00:00
src: main.cf.j2
dest: /etc/postfix/main.cf
owner: root
group: root
mode: 0644
notify: reload postfix
tags: postfix
- name: enable and start service
2021-08-20 16:20:55 +00:00
ansible.builtin.service:
2019-03-05 12:44:14 +00:00
name: postfix
enabled: yes
state: started
tags: postfix