Hi,
this is what I have in a YAML formatted inventory
---
all:
vars:
city:
- Berlin
children:
g_empty:
hosts:
emptybuster:
emptysid:
emptystretch:
city:
- Steglitz
With this code, I get "city": [ "Berlin" ] for emptybuster and
emptystretch, and "city": [ "Steglitz" ] for emptystretch. I would, for
some reason, have "city": [ "Berlin", "Steglitz" ] instead.
I have searched on the web and found a collection of wild constructions
involving filters and/or set_fact, none of which yields the desired
result.
I have thought about setting hash_behavior=merge and making the city
list a hash instead, but setting hash_behavior=merge is not recommended.
Is there a more elegant way to do this, or have I reached ansible's
limits? If so, is there a bug report against ansible where I could read
up on the situation?
Greetings
Marc
--
-----------------------------------------------------------------------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany | lose things." Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421
--
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/20190525184245.GB3193%40torres.zugschlus.de.
For more options, visit https://groups.google.com/d/optout.