is there a progress bar available in TASK?
A Quick Google Search Returned this for me. I’ll assume you did the same?
https://stackoverflow.com/questions/41194021/how-can-i-show-progress-for-a-long-running-ansible-task
Still dont understand why its failing
PLAY [Install updates on whitelist] ***************************************** ***
TASK [Gathering Facts] ****************************************************** ***
ok: [rw-ctxweb-01.wsgr.com]
TASK [Install windows updates] ********************************************** ***
ok: [rw-ctxweb-01.wsgr.com]
TASK [reboot host if required] *************************************************
fatal: [rxxxxxxxxx]: FAILED! => {“msg”: “The conditional check ‘update_result.reboot_required == true’ failed. The error was: error while evaluating conditional (update_result.reboot_required == true): ‘update_result’ is undefined\n\nThe error appears to be in ‘/home/tony/windows/install_windows_KBxxxxx_updates.yml’: line 16, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n - name: reboot host if required\n ^ here\n”}
The spacing on “register: update_result” is off – you need to move it back a bit (align it with “win_updates”).
Thank you!
You should know about ansible-lint as you can find these yourself.
ansible-lint install_windows_KBxxxxx_updates.yml