Hi All,
I have the following template :
*# web_cconfig.j2 :*
*web_servers={% for host in groups['web'] %} {{ host }}, {% endfor %}*
This file is deployed in a role and using the server list from the
inventory web group and working OK, the problem is when there are cases I
need to use the same role but without specifying an inventory file , as for
example when launching a new ec2 instacne and using using *add_host* module
to configure this will throw an error the web group was not found...
Is it possible to manually set a inventory host var so I can use the same
playbook ?
--
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/3c27ff33-7097-45e0-8ec6-96ccf0f7bfe9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.