Ansible conditional based on stdout of result?

Question:

How do I use the when statement based on the standard output of register: result? If standard output exists I want somecommand to run if no standard output exists I want someothercommand to run.

Answer:

Try checking to see it if equals a blank string or not?

Leave a Reply