Hello,
Really need help:
Want to iterate a block of codes on the kb list obtained in an debug o/p:
task path: /tmp/win_patch_role/roles/win_patch_role/tasks/update.yml:36
ok: [vuhplabgtdev108] => {
“update_count”: {
“changed”: false,
“failed”: false,
“filtered_updates”: {},
“found_update_count”: 1,
“installed_update_count”: 0,
“reboot_required”: false,
“updates”: {
“0158cb9b-19d2-4c94-99e1-36ebbd244fc9”: {
“id”: “0158cb9b-19d2-4c94-99e1-36ebbd244fc9”,
“installed”: false,
“kb”: [
“3184943”
],
“title”: “Security Update for Windows Server 2012 (KB3184943)”
}
}
Howto achive the “kb”: [
“3184943”
]
Please help.
i tried to do:
- include_tasks: all_update_block.yml
loop: “{{ update_count.updates.0.kb }}”
but failed.