Skip to content

Commit d5b86af

Browse files
committed
Specify the full path for pip3
Ensure that we are using the system Python environment. This aligns with what we do in other roles, the needs of the cisagov/cyhy-runner package, and the configuration in this role. The molecule testing configuration is also updated to ensure it uses the system Python environment.
1 parent 12e7532 commit d5b86af

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

molecule/default/tests/test_default.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def test_packages(host):
3636
@pytest.mark.parametrize("pkg", ["cyhy-runner"])
3737
def test_pip_packages(host, pkg):
3838
"""Test that the pip packages were installed."""
39-
assert pkg in host.pip.get_packages(pip_path="pip3")
39+
assert pkg in host.pip.get_packages(pip_path="/usr/bin/pip3")
4040

4141

4242
@pytest.mark.parametrize(

tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
- name: Install the cyhy-runner package
1818
ansible.builtin.pip:
19-
executable: pip3
19+
executable: /usr/bin/pip3
2020
# The extra argument is necessary on modern platforms, which
2121
# correctly recognize that the local Python is externally managed
2222
# (i.e. managed via the system package manager and not by pip).

0 commit comments

Comments
 (0)