Install the python packages as deb in ubuntu >= 22.04.
This commit is contained in:
parent
f6936c7b42
commit
6c64a4caec
|
@ -39,6 +39,14 @@
|
|||
force: true
|
||||
when: docker_specific_package_ver
|
||||
|
||||
- name: Install some pyton 3 packages required by ansible
|
||||
ansible.builtin.apt:
|
||||
pkg: "{{ docker_python_deb_pkgs }}"
|
||||
state: present
|
||||
cache_valid_time: 3600
|
||||
force: true
|
||||
when: not py3_env_install
|
||||
|
||||
- name: Remove the docker packages and repository
|
||||
when: not docker_install | bool
|
||||
tags: [docker, docker_pkg]
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
---
|
||||
py3_env_install: True
|
||||
py3_external_env_install: '{% if ansible_distribution_version is version_compare("22.04", "<") %}true{% else %}false{% endif %}'
|
||||
py3_env_install: '{{ py3_external_env_install | bool }}'
|
||||
|
||||
py3_env_pip_pkgs:
|
||||
- docker
|
||||
- jsondiff
|
||||
|
@ -8,6 +10,10 @@ py3_env_versioned_pip_pkgs:
|
|||
- pkg: "requests"
|
||||
version: "2.29.0"
|
||||
|
||||
docker_python_deb_pkgs:
|
||||
- python3-docker
|
||||
- python3-jsondiff
|
||||
|
||||
docker_deb_repo_key_url: 'https://download.docker.com/linux/ubuntu/gpg'
|
||||
# Set to the Debian distribution name if not Ubuntu
|
||||
docker_linux_distribution: '{{ ansible_distribution_release | lower }}'
|
||||
|
|
Loading…
Reference in New Issue