I'm very confused as to what you are attempting.

First, 'groups' is not available at the host pattern level, as it is
host dependent.
Second, the default filter does work, you can test this easily with:

- hosts: "{{cli_hosts|default('new_instances')}}"

having the ternary condition you want (if no new_instances) is a lot
harder as the group won't get evaluated until after the expression is.

-- 
Brian Coca

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAJ5XC8%3D59n9HkfZv22JLypvctmiUU11KKG%3DaFsZpEo02YzG9wQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to