-
Feature Request
-
Resolution: Unresolved
-
Undefined
-
None
-
2.6
-
False
-
-
False
Issue:
When CU uses import_tasks within import_role, it does not work, and it shows the error mentioned in the GitHub issue below.
https://github.com/ansible/ansible/issues/69882
https://github.com/ansible/ansible/issues/83852
https://github.com/ansible/ansible/pull/85877
And UI shows error when cu goes inside the job output and sees this specific task failed with error
"ERROR! Unexpected Exception, this is probably a bug: expected str, bytes or os.PathLike object, not NoneType"
Cu already knows this issue is resolved on core 2.18+ and AAP 2.6 works on core 2.16 hence he is seeing this error.
Given that this remains an architectural edge case where Ansible may crash without emitting structured failure events, cu wants to improve how AAP handles such scenarios in the future.
For example, is there any consideration to enhance the Controller UI to surface raw stderr or display a generic “Ansible internal error” message when the execution environment exits unexpectedly, so users have clearer feedback even when structured task-level data is unavailable?