# 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