check if var is defined
This commit is contained in:
@@ -8,17 +8,23 @@
|
|||||||
- block:
|
- block:
|
||||||
- include_tasks: install_postfix.yml
|
- include_tasks: install_postfix.yml
|
||||||
- include_tasks: configure_postfix.yml
|
- include_tasks: configure_postfix.yml
|
||||||
when: postfix == true
|
when:
|
||||||
|
- postfix is defined
|
||||||
|
- postfix == true
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- include_tasks: install_dovecot.yml
|
- include_tasks: install_dovecot.yml
|
||||||
- include_tasks: configure_dovecot.yml
|
- include_tasks: configure_dovecot.yml
|
||||||
when: dovecot == true
|
when:
|
||||||
|
- dovecot is defined
|
||||||
|
- dovecot == true
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- include_tasks: install_fetchmail.yml
|
- include_tasks: install_fetchmail.yml
|
||||||
- include_tasks: configure_fetchmail.yml
|
- include_tasks: configure_fetchmail.yml
|
||||||
when: fetchmail == true
|
when:
|
||||||
|
- fetchmail is defined
|
||||||
|
- fetchmail == true
|
||||||
|
|
||||||
rescue:
|
rescue:
|
||||||
- set_fact: task_failed=true
|
- set_fact: task_failed=true
|
||||||
Reference in New Issue
Block a user