apt-get does not work on molecule ran via GitHub actions #2892
-
Same as #2116 Issue Type
Molecule and Ansible details
Molecule installation method (one of):
Ansible installation method (one of):
Desired BehaviorTask should work:
Should be noted that I already install
Also, my
, and here's the whole CI job: https://pastebin.com/gVBrmBDp Actual Behaviour
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This has nothing to do with Molecule. It's a requirement of the Ansible apt module to have the Python bindings installed on the target system. If you're installing Molecule with pip but Python apt bindings with apt get, you're probably using a different Python interpreter than you think. Be sure the value of anible_python_interpreter points to the system one and not the virtual env where you've installed molecule with pip |
Beta Was this translation helpful? Give feedback.
This has nothing to do with Molecule. It's a requirement of the Ansible apt module to have the Python bindings installed on the target system. If you're installing Molecule with pip but Python apt bindings with apt get, you're probably using a different Python interpreter than you think.
Be sure the value of anible_python_interpreter points to the system one and not the virtual env where you've installed molecule with pip