Skip to content

Commit

Permalink
Do not override additional_system_packages to install pip
Browse files Browse the repository at this point in the history
Signed-off-by: Julen Landa Alustiza <[email protected]>
  • Loading branch information
Zokormazo committed Oct 19, 2023
1 parent 42fd322 commit b8e4d8e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions roles/setup/tasks/python_packages.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
- name: Install pip package
ansible.builtin.package:
name: "{{ system_pip_package }}"
when:
- system_pip_package | default('') != ''

- name: Get the python version
ansible.builtin.command: >
{{ python_executable }} -c 'import sys; print(sys.version.split()[0])'
Expand Down
4 changes: 2 additions & 2 deletions roles/setup/vars/RedHat-8.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
additional_system_packages:
- python39-pip
system_pip_package: python39-pip
python_executable: python3.9
pip_executable: pip3.9
receptor_packages:
- receptor
Expand Down

0 comments on commit b8e4d8e

Please sign in to comment.