79332998

Date: 2025-01-06 12:26:16
Score: 2
Natty:
Report link

1.Try adding ansible_python_interpreter=/usr/bin/python3 in your inventory file.

  1. If that doesnt help, specify the path to your venv as your python interpreter, ie:

ansible_python_interpreter=/path/to/venv

enter image description here

Lastly, if that doesn't resolve the problem, create a venv, install the desired packages and execute the playbook from INSIDE the venv. Some packages do not work on all ubuntu versions hence a venv is required.

Had a similar problem with the proxmoxer package. enter image description here

Once installed inside the venv and ran ansible from there it resolved the issue. enter image description here

PLaybook runs just fine:

enter image description here

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: T.I