Hi!
I would like to run a role something like
- name: debug role
debug: msg="{{ hostvars[item].ansible_host }}"
with_items: groups[ {{ALLOWED_HOSTS_GROUP}} ]
however the syntax groups[ {{ALLOWED_HOSTS_GROUP}} ] is not accepted.
Is there any other way to pass a group name from a variable defined e.g. in
a playbook?
Thanks for your support.
--
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/f2a8db39-063f-4810-affa-4ae9262d16f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.