So this is true, but it's also ok, since it's just an example.

If you wanted to use it on a ec2 dynamic inventory, you could just do
ec2_tag_webservers instead of webservers in both places.




On Tue, May 27, 2014 at 11:12 PM, Gallagher Polyn <[email protected]
> wrote:

> Hey,
>
> It feels like that all-important beginner's Ansible example
> github.com/ansible/ansible-examples/tree/master/lamp_haproxy can only be
> used, as written, with static inventory.
>
> For example, I modified the example's site.yml to use the ec2.py
> tag_<blah-blah> option for all named hosts, but the example already chokes
> on a Jinja template where the following expression is used: {% if
> (inventory_hostname in groups['webservers']) or (inventory_hostname in
> groups['monitoring']) %}. My suspicion is that this will only be a first
> conflict that users of dynamic inventory will face when attempting to
> execute the example.
>
> So, is there some simple modification or approach to executing
> lamp_haproxy with dynamic inventory?
>
> Thanks, G
>
> --
> 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/0034873d-8304-4cd7-88cb-c1c551c24823%40googlegroups.com<https://groups.google.com/d/msgid/ansible-project/0034873d-8304-4cd7-88cb-c1c551c24823%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CA%2BnsWgxsivsV-2MvWsSwPqXJSUDBOVW8c4B9%3DadGO34ZhOPPVA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to