Thanks, installed the kinit command, but now getting this error:
TASK [windowsupdates : Check If Windows Updates are Available] ******************************************************************************************************************************************************************
task path: /etc/ansible/roles/windowsupdates/tasks/main.yml:1
The full traceback is:
Traceback (most recent call last):
File “/root/.ansible/collections/ansible_collections/ansible/windows/plugins/action/win_updates.py”, line 761, in run
result = self._run_sync(task_vars, module_options, reboot, reboot_timeout)
File “/root/.ansible/collections/ansible_collections/ansible/windows/plugins/action/win_updates.py”, line 834, in _run_sync
update_result = self._run_updates(task_vars, module_options, poll_script_path, cancel_script_path)
File “/root/.ansible/collections/ansible_collections/ansible/windows/plugins/action/win_updates.py”, line 907, in _run_updates
output_path, task_pid, cancel_id = self._start_updates(task_vars, module_options)
File “/root/.ansible/collections/ansible_collections/ansible/windows/plugins/action/win_updates.py”, line 951, in _start_updates
raise _ReturnResultException(msg, exception=result.get(‘exception’, None))
ansible_collections.ansible.windows.plugins.action.win_updates._ReturnResultException: MODULE FAILURE
See stdout/stderr for the exact error
fatal: [ansible_host=x.x.x.x]: FAILED! => {
“changed”: false,
“failed_update_count”: 0,
“filtered_updates”: {},
“found_update_count”: 0,
“installed_update_count”: 0,
“msg”: “MODULE FAILURE\nSee stdout/stderr for the exact error”,
“updates”: {}
}
…ignoring
The full traceback is:
Traceback (most recent call last):
File “/root/.ansible/collections/ansible_collections/ansible/windows/plugins/action/win_updates.py”, line 761, in run
result = self._run_sync(task_vars, module_options, reboot, reboot_timeout)
File “/root/.ansible/collections/ansible_collections/ansible/windows/plugins/action/win_updates.py”, line 834, in _run_sync
update_result = self._run_updates(task_vars, module_options, poll_script_path, cancel_script_path)
File “/root/.ansible/collections/ansible_collections/ansible/windows/plugins/action/win_updates.py”, line 907, in _run_updates
output_path, task_pid, cancel_id = self._start_updates(task_vars, module_options)
File “/root/.ansible/collections/ansible_collections/ansible/windows/plugins/action/win_updates.py”, line 951, in _start_updates
raise _ReturnResultException(msg, exception=result.get(‘exception’, None))
ansible_collections.ansible.windows.plugins.action.win_updates._ReturnResultException: MODULE FAILURE
See stdout/stderr for the exact error
fatal: [ansible_host=x.x.x.x]: FAILED! => {
“changed”: false,
“failed_update_count”: 0,
“filtered_updates”: {},
“found_update_count”: 0,
“installed_update_count”: 0,
“msg”: “MODULE FAILURE\nSee stdout/stderr for the exact error”,
“updates”: {}
}
…ignoring
The same playbook works when using the basic authentication:
TASK [windowsupdates : Check If Windows Updates are Available] ******************************************************************************************************************************************************************
task path: /etc/ansible/roles/windowsupdates/tasks/main.yml:1
ok: [hostname] => {
“changed”: false,
“failed_update_count”: 0,
“filtered_updates”: {},
“found_update_count”: 0,
“installed_update_count”: 0,
“invocation”: {
“module_args”: {
“accept_list”: null,
“category_names”: [
“Application”,
“Connectors”,
“DefinitionUpdates”,
“FeaturePacks”,
“Guidance”,
“ServicePacks”,
“Tools”,
“UpdateRollups”,
“CriticalUpdates”,
“SecurityUpdates”,
“Drivers”,
“Updates”
],
“log_path”: “C:\ansible_wu.txt”,
“reboot”: false,
“reboot_timeout”: 1200,
“reject_list”: null,
“server_selection”: “managed_server”,
“skip_optional”: false,
“state”: “searched”,
“use_scheduled_task”: false
}
},
“reboot_required”: false,
“updates”: {}
}