16 views
Skip to first unread message

Vandana Thakur

unread,
Jun 11, 2019, 6:53:35 AM6/11/19
to : Ansible Project
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.



Vandana Thakur

unread,
Jun 12, 2019, 9:08:23 AM6/12/19
to : Ansible Project
Hii guys , please help on this 

--
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-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CALJDb0n--UUfK5dhoOYQ%3D5vVQStfJy9GYu7Vn6o8JuKKsE-KtA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages