Skip to content

Commit

Permalink
install venv and setuptools also in non standard python
Browse files Browse the repository at this point in the history
  • Loading branch information
mafalb committed Jan 8, 2024
1 parent 23ac711 commit 9372e54
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
6 changes: 4 additions & 2 deletions roles/python/tasks/present.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@

- name: Debug
ansible.builtin.debug:
msg: "{{ [python_package[python_version]] + __python_extra_packages | default([]) }}"
msg: "{{ [python_package[python_version]] + python_extra_packages | default([]) }}"

- name: Python is present
ansible.builtin.package:
name: "{{ [python_package[python_version]] + __python_extra_packages | default([]) }}"
name: "{{ [python_package[python_version]] + python_extra_packages | default([]) }}"

...
11 changes: 11 additions & 0 deletions roles/python/vars/Ubuntu-22.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,14 @@ python_package:
_default: python3.10
"3.10": python3.10
"3.11": python3.11
python_extra_packages:
_default:
- python3.10-venv
- python3.10-setuptools
"3.10":
- python3.10-venv
- python3.10-setuptools
"3.11":
- python3.11-venv
- python3.11-setuptools
...

0 comments on commit 9372e54

Please sign in to comment.