ansible-role-postfix/tasks/main.yml

48 lines
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: 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
2023-09-23 08:19:13 +02:00
- name: Logging
2023-11-03 22:18:02 +01:00
ansible.builtin.import_tasks: logging.yml
2023-09-23 08:19:13 +02:00
tags: logging
when: postfix_type == "internet"