8000 Windows update KB2267602 keeps reinstalling causing loop. · Issue #530 · ansible-collections/ansible.windows · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Windows update KB2267602 keeps reinstalling causing loop.  #530
Closed
@GDMTT

Description

@GDMTT
SUMMARY

There is currently an issue with KB2267602 where it installs and then shows up as available to install again and no matter how many times it's installed it is still listed as available for install. This has the effect of causing win update to loop, which blocks the progress in the job.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

win update

ANSIBLE VERSION

bash-5.1$ ansible --version
ansible [core 2.15.2rc1]
config file = None
configured module search path = ['/runner/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.9/site-packages/ansible
ansible collection location = /runner/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/local/bin/ansible
python version = 3.9.17 (main, Jun 26 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] (/usr/bin/python3)
jinja version = 3.1.2
libyaml = True
bash-5.1$


##### COLLECTION VERSION
# /usr/share/ansible/collections/ansible_collections
Collection              Version
----------------------- -------
amazon.aws              6.2.0  
ansible.posix           1.5.4  
ansible.windows         2.0.0  
awx.awx                 22.5.0 
azure.azcollection      1.16.0 
community.vmware        3.8.0  
google.cloud            1.2.0  
kubernetes.core         2.4.0  
openstack.cloud         2.1.0  
ovirt.ovirt             3.1.2  
redhatinsights.insights 1.0.7  
theforeman.foreman      3.12.0 

note ansible-galaxy collection list community.general returns nothing. 

##### CONFIGURATION
ash-5.1$ ansible-config dump --only-changed
CONFIG_FILE() = None
bash-5.1$ 

##### OS / ENVIRONMENT
AWX 22.3.0
AWX-EE (latest)

##### STEPS TO REPRODUCE
Playbook used:
---
 - hosts: all
   serial:
     - 5
   tasks:
   - name: Ping host to wake up
     ansible.windows.win_ping:

   - name: Check for missing updates
     win_updates:
       state: searched
     register: update_results

   - name: report update results
     debug:
       msg: |
         {% for k in update_results.updates %}
         {{ update_results.updates[k].title }}
         {% endfor %}         

   - name: Apply Security, Critical updates, Update Rollups log to C:\ansible_wu.txt
     ansible.windows.win_updates:
       category_names:
         - SecurityUpdates
         - CriticalUpdates
         - UpdateRollups
         - Updates
         - DefinitionUpdates
         - MicrosoftDefenderAntivirus
       reboot: yes
       log_path: C:\ansible_wu.txt

   - name: Check for missing updates
     win_updates:
       state: searched
     register: update_results

   - name: report update results
     debug:
       msg: |
         {% for k in update_results.updates %}
         {{ update_results.updates[k].title }}
         {% endfor %}         

and when there is a windows KB that is always showing as avalible for install even when it is installed , in this case KB2267602

##### EXPECTED RESULTS
TASK [Apply Security, Critical updates, Update Rollups log to C:\ansible_wu.txt] ***
<VTest1.domain.LOCAL> Running win_updates - round 1
<VTest1.domain.LOCAL> Running win_updates - round 2
<VTest1.domain.LOCAL> Running win_updates - round 3
<VTest1.domain.LOCAL> Running win_updates - round 4
<VTest1.domain.LOCAL> Running win_updates - round 5
<VTest1.domain.LOCAL> Running win_updates - round 6
<VTest1.domain.LOCAL> Running win_updates - round 7
<VTest1.domain.LOCAL> Running win_updates - round 8
<VTest1.domain.LOCAL> Running win_updates - round 9
<VTest1.domain.LOCAL> Running win_updates - round 10
<VTest1.domain.LOCAL> Running win_updates - round 11
<VTest1.domain.LOCAL> Running win_updates - round 12
<VTest1.domain.LOCAL> Running win_updates - round 13
<VTest1.domain.LOCAL> Running win_updates - round 14


##### ACTUAL RESULTS
The job is blocked but the install loop until its canceled. 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0