without much Ansible experience:
1. the blank line (22) looks suspicious
2. would you need to add spaces between " {{ }} " for calling the
variable in line 23?
whitelist: "{{kb_list|default(omit,true )}}"
vs
whitelist: " {{ kb_list|default(omit,true ) }} "
On 10.11.21 16:38, Jitendra Ingale wrote:
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
<https://groups.google.com/d/msgid/ansible-project/ab22a276-05e4-48af-96eb-f48d15fe5ea4n%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/b439817a-fb29-b77d-7b5d-b7ddd1d721c3%40mailbox.org.