49 lines
1.1 KiB
YAML
49 lines
1.1 KiB
YAML
---
|
|
- 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
|
|
|
|
- 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"
|
|
- postfix_tls_helper is defined and postfix_tls_helper
|
|
|
|
- name: MTA-STS
|
|
ansible.builtin.include_tasks: mta-sts.yml
|
|
tags: mta-sts
|
|
loop: "{{ postfix_domains }}"
|
|
when:
|
|
- postfix_domains is defined
|
|
- postfix_type == "internet"
|
|
args:
|
|
apply:
|
|
delegate_to: "{{ gateway_host }}"
|
|
|
|
- name: Hostname
|
|
ansible.builtin.import_tasks: hostname.yml
|
|
tags: hostname
|
|
when: postfix_type == "internet"
|
|
|
|
- name: Logging
|
|
ansible.builtin.import_tasks: logging.yml
|
|
tags: logging
|
|
when: postfix_type == "internet"
|