Brian,

I tried it, but the response is very polluted. I am looking for something 
more simple.

e.g:

# cat hosts
[web:children]
web-region1
......

[web-region1]
1.2.3.4 var1="[1, 2, 3]" var2="caipirinha"
1.2.3.5 var1="[6, 7, 8]" var2="caipirinha-com-gelo"
......

# cat group_vars/web-region1
var_name1: "1, 2"
var_name2: "3, 4"
.......


So, the expectation should be to create a single

# cat web-region1.yml
web-region1:
  hosts:
    1.2.3.4:
      var1: "[1, 2, 3]"
      var2: "caipirinha"

    1.2.3.5:
       var1: "[6, 7, 8]"
       var2: "caipirinha-com-gelo"

   vars:
     var_name1: "1, 2"
     var_name2: "3, 4"
#

Somebody knows if have some way? Any clue?

Em quinta-feira, 5 de outubro de 2017 13:37:35 UTC-3, Brian Coca escreveu:
>
> in 2.4 you can use ansible-inventory to dump a yaml/json 
> representation of the inventory. 
>
>
>
>
>
> -- 
> ---------- 
> Brian Coca 
>
 

-- 
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/349cbcaf-6a6a-4e62-b15e-b371d1aed290%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to