Hi Ansible Gurus,
Is it possible to print some message in the task itself when condition is
not matched , rather than having new task with debug module ?
Example: currently i am writing two tasks:
- name: Get Active Application server
debug:
msg: "No active Application server found. "
when: app_server_result is failed
tasks:
- include_role:
name: myrole
tasks_from: myapplicaton_server
when: app_server_result is not failed
can we avoid debug statement here and can manage only with second task ?
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CAGH8rEw3Z6eKV9SCKOVv_edyXx1UReiomktH3oKkDP85OMR%3DfA%40mail.gmail.com.