Sometime there is a strong desire to print some visible warning on screen in the middle of a…
Unfortunately, it’s not possible.
But there is a way to live with this.
The usual reason for ‘unset’ fact is a check for definition:
when: foo is undefined
Today I found one more feature of Ansible I find useful. I need to stop executing playbook if it had done everything it need to do. There is a special meta: end_play which supports conditions.
meta: end_play
Today I have good news: nested whens work as expected in Ansible.
when
What is a nested ‘when’?
- block: - debug: when: True when: False
There is a special thing in programming and system administration, called lore. It’s a pile of a…