Target Host Errors
Missing Python Libraries
If you have an Ansible playbook that is failing on a target host, it's likely that the Python libraries on the target host, are incompatible with the version of Ansible.
This would present with an error message starting with:
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ModuleNotFoundError: No module named 'ansible.module_utils.six.moves'
Here's what it would look like when running the playbook from the command line:
Here's what it would look like when running from RunDeck:
You can either downgrade the python library to a compatible version.
Or, upgrade Ansible to a version that is compatible with the Python library on the target host.
See this page for the Python version range that each version of Ansible supports: Ansible Core Support Matrix
No Comments