July 2017
Intermediate to advanced
266 pages
6h 36m
English
Null or empty string comparisons are common in most programming languages, and Ansible is no different. Applying a null or empty string check to an Ansible register can be accomplished via the following solution:
when: <registername>.stdout == ""
In addition to this specific implementation, we can also apply other variables to our conditionals with registers. Let's see how.
Read now
Unlock full access