56 lines
1.2 KiB
YAML
56 lines
1.2 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: Fail2ban
|
|
ansible.builtin.import_tasks: fail2ban.yml
|
|
tags: fail2ban
|
|
when: postfix_type == "internet"
|
|
|
|
- name: TLS-helper
|
|
ansible.builtin.import_tasks: tls-helper.yml
|
|
tags: tls-helper
|
|
when: postfix_type == "internet"
|
|
|
|
- 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: Monitoring
|
|
ansible.builtin.import_tasks: monitoring.yml
|
|
tags: monitoring
|
|
|
|
- name: Logging
|
|
ansible.builtin.import_tasks: rsyslog.yml
|
|
tags: logging
|
|
when: postfix_type == "internet"
|