Ansible with_items if item is defined

Question:

Ansible 1.9.4.

The script should execute some task only on hosts where some variable is defined. It works fine normally, but it doesn’t work with the with_items statement.

But I get:

Maybe I am doing something wrong?

Answer:

Leave a Reply