2024-11-27 13:48:08 +10:00
|
|
|
---
|
2025-01-14 20:18:57 +10:00
|
|
|
- name: Install postfix
|
2024-12-19 13:22:42 +10:00
|
|
|
ansible.builtin.package: name=postfix state=present
|
2012-11-19 22:02:58 +00:00
|
|
|
tags:
|
|
|
|
- postfix
|
2013-05-21 20:15:34 +00:00
|
|
|
- packages
|
2012-11-19 21:36:32 +00:00
|
|
|
|
|
|
|
- name: /etc/postfix/main.cf
|
2024-12-18 08:23:28 +10:00
|
|
|
ansible.builtin.copy: src={{ item }} dest=/etc/postfix/main.cf
|
2013-05-20 20:25:00 +00:00
|
|
|
with_first_found:
|
2014-01-01 19:15:11 +00:00
|
|
|
- "{{ postfix_maincf }}"
|
2017-04-13 15:46:14 +00:00
|
|
|
- "{{ 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 }}"
|
2021-02-17 19:17:50 -05:00
|
|
|
- "{{ roles_path }}/base/files/postfix/main.cf/main.cf.{{ datacenter }}"
|
2017-04-13 15:46:14 +00:00
|
|
|
- "{{ roles_path }}/base/files/postfix/main.cf/main.cf"
|
2012-11-19 21:36:32 +00:00
|
|
|
notify:
|
2025-02-07 13:51:07 +01:00
|
|
|
- Restart postfix
|
2012-11-19 21:36:32 +00:00
|
|
|
tags:
|
|
|
|
- postfix
|
|
|
|
- config
|
|
|
|
|
2025-01-14 20:18:57 +10:00
|
|
|
- name: Enable postfix to start
|
2017-04-13 01:37:21 +00:00
|
|
|
service: name=postfix state=started enabled=true
|
2013-05-21 20:15:34 +00:00
|
|
|
tags:
|
|
|
|
- service
|