Ansible: How to test that a registered variable is not empty?


How can I test that stderr is non empty::

So if there is no error I could read::

In case the stderr is not empty a FATAl error occurs.


You can check for empty string (when stderr is empty)

If you want to check for fail:

Leave a Reply