I have a playbook running Windows update and want to use set_fact to get a 
list of updates installed and the kb numbers.
At the end of the win_updates I register a variable which has the following:

 "update_result.updates": {
        "cdde339c-ebdb-4a16-add4-fb196a5053a8": {
            "id": "cdde339c-ebdb-4a16-add4-fb196a5053a8",
            "installed": false,
            "kb": [
                "3172729"
            ],
            "title": "Security Update for Windows Server 2012 R2 
(KB3172729)"
        },
        "f77e3686-2b8e-4282-b231-b08e49ddddee": {
            "id": "f77e3686-2b8e-4282-b231-b08e49ddddee",
            "installed": false,
            "kb": [
                "3167679"
            ],
            "title": "Security Update for Windows Server 2012 R2 
(KB3167679)"
        }
    }
}

How do I go about using map extract filter to get the kb, title and 
installed values for each item in the list?

-- 
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/91addb25-f3c3-4cb9-8324-ab2aea805daf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to