Folks,

I am using below pasted playbook for windows server patching which has 
variable file defined along with.
It is supposed to take KB number mentioned in variable file and install it 
on server, followed by server reboot.

Problem is that, the said playbook is getting executed without any issue 
and also rebooting the server *however its not installing mentioned KB 
patches on server* as expected.

Please suggest.

*Playbook*
*---*
*- hosts: win*
*  vars_files:*
*    - patch_list1.yml*
*  tasks:*
*          - name: Install only particular updates based on the KB numbers*
*            win_updates:*
*              category_names:*
*                - SecurityUpdates*
*                - CriticalUpdates*
*                - UpdateRollups*
*                - DefinitionUpdates*
*                - Updates*
*                - Application*
*                - Connectors*
*                - DeveloperKits*
*                - FeaturePacks*
*                - Guidance*
*                - ServicePacks*
*                - Tools*
*                - UpdateRollups*

*              whitelist: "{{ kb_list|default(omit,true )}}"*
*              log_path: C:\WinUpdates.txt*
*                    #  - debug: msg " It's rebooting "*
*          - name: Rebooting the machine*
*            win_reboot:*


*Variable File (patch_list1.yml)*
*kb_list: [KB5006065, KB890830]*

-- 
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/ab22a276-05e4-48af-96eb-f48d15fe5ea4n%40googlegroups.com.

Reply via email to