Hii guys , please help on this

---------- Forwarded message ---------
From: Vandana Thakur <[email protected]>
Date: Tue, 11 Jun 2019 at 16:23
Subject: [ansible-project]
To: : Ansible Project <[email protected]>


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.



-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CALJDb0n--UUfK5dhoOYQ%3D5vVQStfJy9GYu7Vn6o8JuKKsE-KtA%40mail.gmail.com
<https://groups.google.com/d/msgid/ansible-project/CALJDb0n--UUfK5dhoOYQ%3D5vVQStfJy9GYu7Vn6o8JuKKsE-KtA%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CALJDb0m5VpuOL%2BErmo_UsnXtc7gzJ7cwLUkfcsmtfrLTmH6BQA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to