Hello Jon,
Thanks.
I worked but to restart the os after uninstall , i am using this :
- name: uninstall kb
win_shell: WUSA /uninstall /kb:{{ kbno }} /quiet /norestart
register: uninstall
- debug: var="uninstall"
- win_reboot:
when: uninstall.rc == 0
reboot_timeout: 1500
post_reboot_delay: 100
if the uninstall is successful.
Since without "
/quiet /norestart
" the job was getting stuck as it needed user input to whether restart or not at windows server side.
Is there any better way to handle the user input to restart if required in playbook.
Thanks!