Nothing changed on the target host, not even rebooted but able to ping and can do a handshake
Playbook -
PLAY [windows] *************************************************************************************************************************************************************
TASK [Gathering Facts] *****************************************************************************************************************************************************
ok: [MQN-CKMH5E31UM7.corp.medqia.com]
TASK [Install all security, critical, and rollup updates without a scheduled task] *****************************************************************************************
ok: [MQN-CKMH5E31UM7.corp.medqia.com]
TASK [Install only security updates as a scheduled task for window machines] ***********************************************************************************************
ok: [MQN-CKMH5E31UM7.corp.medqia.com]
TASK [Install only particular updates based on the KB numbers] *************************************************************************************************************
ok: [MQN-CKMH5E31UM7.corp.medqia.com]
TASK [Install all security updates with automatic reboots] *****************************************************************************************************************
ok: [MQN-CKMH5E31UM7.corp.medqia.com]
TASK [Ensure WinRM starts when the system has settled and is ready to work reliably] ***************************************************************************************
ok: [MQN-CKMH5E31UM7.corp.medqia.com]
PLAY RECAP *****************************************************************************************************************************************************************
MQN-CKMH5E31UM7.corp.medqia.com : ok=6 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
Playbook contents =
hosts: windows
vars:
ansible_connection: winrm
ansible_ssh_port: 5986
anisble_winrm_transport: kerberos
ansible_winrm_server_cert_validation: ignore
validate_certs: false
ansible_winrm_scheme: https
ansibe_winrm_read_timeout_sec: 120
tasks:
name: Install all security, critical, and rollup updates without a scheduled task
win_updates:
category_names:
name: Install only security updates as a scheduled task for window machines
win_updates:
category_names: SecurityUpdates
use_scheduled_task: yes
name: Install only particular updates based on the KB numbers
win_updates:
category_name:
SecurityUpdates
whitelist:
KB4528760
KB890830
KB4534271
KB22677602
name: Install all security updates with automatic reboots
win_updates:
category_names:
SecurityUpdates
reboot: yes
name: Ensure WinRM starts when the system has settled and is ready to work reliably
win_service:
name: WinRM
start_mode: delayed
Have a look through your output, the "filtered_updates" key show all the updates that the Windows Update Agent can find and also displays why they have been filtered in the win_updates task. So there's nothing the win_updates module is set to do because Windows is reporting no updates are available that match the criteria you are wanting.You should see the exact same thing if you were to log onto the computer manually and search for update, Ansible isn't doing anything special here.
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/d1b60c38-6cad-448e-bee3-6db9181b3f10%40googlegroups.com.
- name: ensure Windows 10 has 1909 feature upgrade installed
win_updates:
category_names:
- Upgrades
whitelist:
- KB4530684
reboot: yes
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/8e43d291-1018-4533-affe-6cb378f7f48a%40googlegroups.com.
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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/c0009163-cfc7-49ba-a53b-8fb30f9a3e28%40googlegroups.com.
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.
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?
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/e3193879-b277-44ae-905a-73ae84795e72%40googlegroups.com.
{
"updates": {
"ac2b20ab-6186-4267-8d55-4b3ca35197d1": {
"categories": [
"Upgrades"
],
"title": "Feature update to Windows 10, version 1909",
"id": "ac2b20ab-6186-4267-8d55-4b3ca35197d1",
"installed": false,
"kb": [
"4560960"
]
}
},
"found_update_count": 1,
"changed": false,
"reboot_required": false,
"installed_update_count": 0,
"filtered_updates": {
"f9d81e60-32f2-41f3-b553-2261ff953ee8": {
"id": "f9d81e60-32f2-41f3-b553-2261ff953ee8",
"filtered_reason": "category_names",
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.319.975.0)",
"categories": [
"Definition Updates",
"Microsoft Defender Antivirus"
],
"kb": [
"2267602"
],
"installed": false
}