# Jinja map 'extract'

**URL:** <https://forum.ansible.com/t/jinja-map-extract/22315>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [August 18, 2016, 9:33am UTC](https://forum.ansible.com/t/jinja-map-extract/22315 "2016-08-18T09:33:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike\_Fennemore](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@Mike\_Fennemore](https://forum.ansible.com/u/Mike_Fennemore)\
**Post date:** [August 18, 2016, 9:33am UTC](https://forum.ansible.com/t/jinja-map-extract/22315/1 "2016-08-18T09:33:12Z")

</div>

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?
