> # Inventories/inv1
> [atlanta]
> xyz.com
>
> [europe]
> abc.com
>
> I need to have group variables for production in a way like
> Inventories/group_vars/production which is specific to Prod.
>
> #Inventories/group_vars/production
> ---
>
> url: 'jnp://mqendpoint.company.com:1099'
> env: 'Production'
>
>
> How can I glue these two files into a third inventory file
> Inventories/production.
>
> What I tried is
> #Inventories/production
> [production:children]
> atlanta
> europe
>
> I am getting error as  child group is not defined:atlanta, europe
>

​Because eacht ini file is parsed as if it was a unique inventory.

Just add
---
[atlanta]​

​[europe]​

in #Inventories/production
and you'l be good


> Any ideas?
>
> --
> 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/da821773-8bf0-4704-8696-ca3a2ada935a%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/da821773-8bf0-4704-8696-ca3a2ada935a%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/CAEhzMJAP4-90Zzaa-RnAFUn7somsZdXKDFMkJ05jXPXg0Rw_xw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to