ansible 1.8.2: json is not parsed from uri result..

24 views
Skip to first unread message

Maxym Pendyshchuk

unread,
Jan 6, 2015, 6:09:15 PM1/6/15
to ansible...@googlegroups.com
Hi!
I'm using the last version of Ansible, having the following task:

- uri: url=MY_URL
       method=GET user={{ user }} password={{ password }} force_basic_auth=yes return_content=yes
  register: configuration

I don't see json property in configuration... Most probably the reason is that the return type is not "ansible/json" but 
...
"content_type": "application/json; charset=UTF-8",
...

is here any workaround, or I need to look for a 3rd party module to get json content parsed?

thanks in advance,
Max

Brian Coca

unread,
Jan 7, 2015, 8:50:15 AM1/7/15
to ansible...@googlegroups.com
that should just work, the module does a fuzzy match on
'application/json', the charset part would not matter.

can you show the raw output of the call?

--
Brian Coca
Reply all
Reply to author
Forward
0 new messages