added new host
This commit is contained in:
22
roles/mailserver/tasks/main.yml
Normal file
22
roles/mailserver/tasks/main.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
# Load distro-specific variables
|
||||
- include_vars: "{{ ansible_distribution }}.yml"
|
||||
tags: always
|
||||
|
||||
- block:
|
||||
- block:
|
||||
- include_tasks: install_postfix.yml
|
||||
- include_tasks: configure_postfix.yml
|
||||
when: postfix == true
|
||||
|
||||
- block:
|
||||
- include_tasks: install_dovecot.yml
|
||||
- include_tasks: configure_dovecot.yml
|
||||
when: dovecot == true
|
||||
|
||||
- block:
|
||||
- include_tasks: install_fetchmail.yml
|
||||
- include_tasks: configure_fetchmail.yml
|
||||
when: fetchmail == true
|
||||
|
||||
rescue:
|
||||
- set_fact: task_failed=true
|
||||
Reference in New Issue
Block a user