Skip to content

apt-get does not work on molecule ran via GitHub actions #2892

Answered by greg-hellings
aorfanos asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by aorfanos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2892 on October 20, 2020 18:01.