Hi, Can you share the script in a way, we are looking for ways to do the 
same.
Thanks!

duminică, 9 februarie 2014, 20:33:39 UTC+1, habeeb rahman a scris:
>
> Hi Ansiblers,
>
> I just finished a python program to query our mysql inventory.
> when I do python getinv.py --list, i can see the json output. And 'ansible 
> us-east-1_app1 --list-hosts' works as well.
> The only problem is it also displays the group name in the output. This 
> affects when I check say uptime - ssh says not able to ssh to the *group 
> name.*
> eg,
> $>ansible *us-east-1_app1* --list-hosts
>     *us-east-1_app1*
>     app000ea2
>     app002ea1
>
> Any idea why ansible also gets the *group name*?
> Here is the json part...
>
>     "*us-east-1_app1*": {
>         "children": [
>             "app1"
>         ]
>     },
>
>     "app1": {
>         "hosts": [
>             "app000ea1",
>             "app002ea2"
>         ]
>     },
>
> Any pointers?
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/6f25c45f-4bec-4231-b18f-83d776d126f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to