1. Well we provided *reboot: yes * doesn't it suppose to make mandatory reboot by itself? 2. I used the same playbook to a different instance. For some reason, it filtered out the required information but didn't install. root@ip-10-0-2-209:/etc/ansible/windows-playbook# ansible-playbook upgrades.yml -vvv ansible-playbook 2.9.2 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/dist-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.12 (default, Oct 8 2019, 14:14:10) [GCC 5.4.0 20160609] Using /etc/ansible/ansible.cfg as config file host_list declined parsing /etc/ansible/hosts as it did not pass its verify_file() method script declined parsing /etc/ansible/hosts as it did not pass its verify_file() method auto declined parsing /etc/ansible/hosts as it did not pass its verify_file() method Parsed /etc/ansible/hosts inventory source with ini plugin
PLAYBOOK: upgrades.yml ***************************************************************************************************************************************************** 1 plays in upgrades.yml PLAY [windows] ************************************************************************************************************************************************************* TASK [Gathering Facts] ***************************************************************************************************************************************************** task path: /etc/ansible/windows-playbook/upgrades.yml:2 Using module file /usr/lib/python2.7/dist-packages/ansible/modules/windows/setup.ps1 Pipelining is enabled. <EC2AMAZ-3FFNIJH.CORP.MEDQIA.COM> ESTABLISH WINRM CONNECTION FOR USER: None on PORT 5986 TO EC2AMAZ-3FFNIJH.CORP.MEDQIA.COM EXEC (via pipeline wrapper) ok: [EC2AMAZ-3FFNIJH.CORP.MEDQIA.COM] META: ran handlers TASK [Install all security, critical, and rollup updates without a scheduled task] ***************************************************************************************** task path: /etc/ansible/windows-playbook/upgrades.yml:12 win_updates: running win_updates module Using module file /usr/lib/python2.7/dist-packages/ansible/modules/windows/win_updates.ps1 Pipelining is enabled. <EC2AMAZ-3FFNIJH.CORP.MEDQIA.COM> ESTABLISH WINRM CONNECTION FOR USER: None on PORT 5986 TO EC2AMAZ-3FFNIJH.CORP.MEDQIA.COM EXEC (via pipeline wrapper) *ok: [EC2AMAZ-3FFNIJH.CORP.MEDQIA.COM <http://EC2AMAZ-3FFNIJH.CORP.MEDQIA.COM>] => { "changed": false, "filtered_updates": { "68d313ad-b2ef-4722-a437-a8f4b8260ce7": { "categories": [ "Definition Updates", "Windows Defender" ],* * "filtered_reason": "category_names", "id": "68d313ad-b2ef-4722-a437-a8f4b8260ce7", "installed": false, "kb": [ "2267602" ], "title": "Security Intelligence Update for Windows Defender Antivirus - KB2267602 (Version 1.307.2841.0)"* } }, "found_update_count": 0, "installed_update_count": 0, "reboot_required": false, "updates": {} } META: ran handlers META: ran handlers PLAY RECAP ***************************************************************************************************************************************************************** EC2AMAZ-3FFNIJH.CORP.MEDQIA.COM : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 *After I installed the update manually on the server for " *Security Intelligence Update for Windows Defender Antivirus - KB2267602 (Version 1.307.2841.0)". * the prompt went away. Why it didn't update?* root@ip-10-0-2-209:/etc/ansible/windows-playbook# ansible-playbook upgrades.yml -vvv ansible-playbook 2.9.2 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/dist-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.12 (default, Oct 8 2019, 14:14:10) [GCC 5.4.0 20160609] Using /etc/ansible/ansible.cfg as config file host_list declined parsing /etc/ansible/hosts as it did not pass its verify_file() method script declined parsing /etc/ansible/hosts as it did not pass its verify_file() method auto declined parsing /etc/ansible/hosts as it did not pass its verify_file() method Parsed /etc/ansible/hosts inventory source with ini plugin PLAYBOOK: upgrades.yml ***************************************************************************************************************************************************** 1 plays in upgrades.yml PLAY [windows] ************************************************************************************************************************************************************* TASK [Gathering Facts] ***************************************************************************************************************************************************** task path: /etc/ansible/windows-playbook/upgrades.yml:2 Using module file /usr/lib/python2.7/dist-packages/ansible/modules/windows/setup.ps1 Pipelining is enabled. <EC2AMAZ-3FFNIJH.CORP.MEDQIA.COM> ESTABLISH WINRM CONNECTION FOR USER: None on PORT 5986 TO EC2AMAZ-3FFNIJH.CORP.MEDQIA.COM EXEC (via pipeline wrapper) ok: [EC2AMAZ-3FFNIJH.CORP.MEDQIA.COM] META: ran handlers TASK [Install all security, critical, and rollup updates without a scheduled task] ***************************************************************************************** task path: /etc/ansible/windows-playbook/upgrades.yml:12 win_updates: running win_updates module Using module file /usr/lib/python2.7/dist-packages/ansible/modules/windows/win_updates.ps1 Pipelining is enabled. <EC2AMAZ-3FFNIJH.CORP.MEDQIA.COM> ESTABLISH WINRM CONNECTION FOR USER: None on PORT 5986 TO EC2AMAZ-3FFNIJH.CORP.MEDQIA.COM EXEC (via pipeline wrapper) *ok: [EC2AMAZ-3FFNIJH.CORP.MEDQIA.COM <http://EC2AMAZ-3FFNIJH.CORP.MEDQIA.COM>] => { "changed": false, "filtered_updates": {}, "found_update_count": 0, "installed_update_count": 0, "reboot_required": false, "updates": {}}* META: ran handlers META: ran handlers PLAY RECAP ***************************************************************************************************************************************************************** EC2AMAZ-3FFNIJH.CORP.MEDQIA.COM : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 *"* On Wed, Jan 22, 2020 at 2:46 PM Jordan Borean <[email protected]> wrote: > According to > https://docs.microsoft.com/en-us/previous-versions/windows/desktop/hh968413(v=vs.85), > the HRESULT value 0x80240016 corresponds to WU_E_INSTALL_NOT_ALLOWED > > Operation tried to install while another installation was in progress or >> the system was pending a mandatory restart. >> > > Sounds like you either have some other installer working in the background > or a reboot is pending > > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/c0009163-cfc7-49ba-a53b-8fb30f9a3e28%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/c0009163-cfc7-49ba-a53b-8fb30f9a3e28%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAGYWNsOP63aYWm7FUnT1VP4PbELQf2%2BnUARi9mHuur4iAJcp8Q%40mail.gmail.com.
