TASK [debug] 
*************************************************************************************************************************************
ok: [Host1] => {
    "result": {
        "aaaLogin": {
            "attributes": {
                "cookie": "",
                "outCookie": 
"1609345308/14c4aad7-b7b1-17b1-a10e-bc16ee6a0f70",
                "outPriv": "admin",
                "outRefreshPeriod": "600",
                "outSessionId": "8470",
                "outVersion": "3.1(3a)",
                "response": "yes"
            }
        },
        "ansible_facts": {
            "discovered_interpreter_python": "/usr/bin/python3"
        },
        "changed": false,
        "configResolveClass": {
            "attributes": {
                "classId": "equipmentPsu",
                "cookie": "1609345308/14c4aad7-b7b1-17b1-a10e-bc16ee6a0f70",
                "response": "yes"
            },
            "children": [
                {
                    "outConfigs": {
                        "attributes": {},
                        "children": [
                            {
                                "equipmentPsu": {
                                    "attributes": {
                                        "dn": "sys/rack-unit-1/psu-1",
                                        "fwVersion": "12002216",
                                        "id": "1",
                                        "input": "138",
                                        "maxOutput": "NA",
                                        "model": "700-014160-0000",
                                        "operability": "operable",
                                        "output": "112",
                                        "pid": "UCSC-PSU1-770W",
                                        "power": "on",
                                        "presence": "equipped",
                                        "serial": "ART2221F58Q",
                                        "thermal": "ok",
                                        "vendor": "Cisco Systems Inc",
                                        "voltage": "ok"
                                    }
                                }
                            },
                            {
                                "equipmentPsu": {
                                    "attributes": {
                                        "dn": "sys/rack-unit-1/psu-2",
                                        "fwVersion": "12002216",
                                        "id": "2",
                                        "input": "145",
                                        "maxOutput": "NA",
                                        "model": "700-014160-0000",
                                        "operability": "operable",
                                        "output": "118",
                                        "pid": "UCSC-PSU1-770W",
                                        "power": "on",
                                        "presence": "equipped",
                                        "serial": "ART2221F4XS",
                                        "thermal": "ok",
                                        "vendor": "Cisco Systems Inc",
                                        "voltage": "ok"
                                    }
                                }
                            }
                        ]
                    }
                }
            ]
        },
        "elapsed": 3,
        "failed": false,
        "response": "OK (unknown bytes)",
        "status": 200
    }
}

PLAY RECAP 
***************************************************************************************************************************************
host1               : ok=2    changed=0    unreachable=0    failed=0    
skipped=0    rescued=0    ignored=0

On Wednesday, 30 December 2020 at 10:29:19 UTC-5 vbo...@gmail.com wrote:

> On Wed, 30 Dec 2020 06:46:37 -0800 (PST)
> Ramesh AR <rames...@gmail.com> wrote:
>
> > register: result
> > - name: Display PSU status
> > debug: msg="{{ result.json | json_query(jmesquery) }}"
> > vars:
> > jmesquery: "[*].{dn: dn, id: id}"
>
> Post the (link to) "result". For example
>
> - debug:
> var: result.json
>
> You might want to paste it
> https://alternativeto.net/software/pastebin/
>
> -- 
> Vladimir Botka
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/d1eb5f58-c106-439b-a26a-95f9590dadaan%40googlegroups.com.

Reply via email to