ansible-role-postfix/tasks/main.yml

52 lines
1.1 KiB
YAML
Raw Normal View History

2023-03-20 20:01:04 +01:00
---
- name: Packages
ansible.builtin.import_tasks: packages.yml
tags: packages
- name: Postfix
ansible.builtin.import_tasks: postfix.yml
tags: postfix
- name: Domains
ansible.builtin.import_tasks: domains.yml
tags: domains
- name: Aliases
ansible.builtin.import_tasks: aliases.yml
tags: aliases
2023-03-20 20:01:04 +01:00
- name: OnionMX
ansible.builtin.import_tasks: onionmx.yml
tags: onionmx
when: postfix_onionmx is defined and postfix_onionmx
- name: Fail2ban
ansible.builtin.import_tasks: fail2ban.yml
tags: fail2ban
2023-04-19 15:41:58 +02:00
when: postfix_type == "internet"
2023-03-20 20:01:04 +01:00
- name: TLS-helper
ansible.builtin.import_tasks: tls-helper.yml
tags: tls-helper
when: postfix_type == "internet"
2023-03-20 20:01:04 +01:00
2023-04-17 22:11:40 +02:00
- name: MTA-STS
2023-04-17 23:17:22 +02:00
ansible.builtin.include_tasks: mta-sts.yml
2023-04-17 22:11:40 +02:00
tags: mta-sts
loop: "{{ postfix_domains }}"
when:
- postfix_domains is defined
- postfix_type == "internet"
2023-04-18 00:08:33 +02:00
args:
apply:
delegate_to: "{{ gateway_host }}"
2023-04-17 22:11:40 +02:00
2023-03-20 20:01:04 +01:00
- name: Hostname
ansible.builtin.import_tasks: hostname.yml
tags: hostname
when: postfix_type == "internet"
2023-03-20 20:01:04 +01:00
- name: Monitoring
ansible.builtin.import_tasks: monitoring.yml
tags: monitoring