ansible-role-postfix/tasks/main.yml

27 lines
766 B
YAML
Raw Normal View History

2022-10-11 09:19:06 +02:00
---
- name: Ensure installation of Postfix
include_tasks: install.yml
when: postfix_only_populate_db == False
- name: Ensure scripts are deployed
include_tasks: deploy_scripts.yml
when: postfix_only_populate_db == False
- name: Ensure configuration of Postfix
include_tasks: configure.yml
when: postfix_only_populate_db == False
- name: Ensure configuration of UFW
include_tasks: configure_ufw.yml
when:
- configure_ufw
- postfix_only_populate_db == False
- name: Ensure configuration of Postfix disclaimer
include_tasks: configure_disclaimer.yml
when:
- postfix_only_populate_db == False
- name: Ensure configuration of Postfix database
include_tasks: configure_database.yml
when: inventory_hostname == ansible_play_hosts[0]