added new host

This commit is contained in:
2022-10-27 09:32:11 +02:00
parent 795c217fb6
commit 1b96ff38ec
7 changed files with 125 additions and 0 deletions

View 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