Have the Following Playbook Which Returns the following

ok: [localhost] => {
    "mdb.json": [
        {
            "mac-address": "xx:xx:xx:xx:xx"
        }
    ]
}


--
- hosts: localhost
  gather_facts: false
  tasks:
  - name: Getting Mac Address 
    uri: url="http://.com?field=mac-address"; return_content=yes
    register: mdb
  - debug:
      msg: "{{ mdb.json.split(':') }}"

What i would like to Return is just 

 "msg":  "xx:xx:xx:xx:xx"

But Split doesn't seem to work 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/bbc6205a-89fe-452d-ad71-ef72a3714e0a%40googlegroups.com.

Reply via email to