From: David Galloway Date: Thu, 18 Nov 2021 20:15:15 +0000 (-0500) Subject: container-host: Install python dependencies X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F658%2Fhead;p=ceph-cm-ansible.git container-host: Install python dependencies I need this role for Jenkins builders. They don't get setuptools or pip installed during the common role. Signed-off-by: David Galloway --- diff --git a/roles/container-host/tasks/container_mirror.yml b/roles/container-host/tasks/container_mirror.yml index 72ced9ab..74f5bd16 100644 --- a/roles/container-host/tasks/container_mirror.yml +++ b/roles/container-host/tasks/container_mirror.yml @@ -22,6 +22,7 @@ pip: name: git+https://github.com/sebastian-philipp/registries-conf-ctl state: latest + executable: "{{ pip_executable|default('pip3') }}" tags: - registries-conf-ctl diff --git a/roles/container-host/vars/apt_systems.yml b/roles/container-host/vars/apt_systems.yml index 3c25aed5..e513e8d1 100644 --- a/roles/container-host/vars/apt_systems.yml +++ b/roles/container-host/vars/apt_systems.yml @@ -1,3 +1,5 @@ --- container_packages: - docker.io + - python3-setuptools + - python3-pip diff --git a/roles/container-host/vars/centos_7.yml b/roles/container-host/vars/centos_7.yml new file mode 100644 index 00000000..e0d59071 --- /dev/null +++ b/roles/container-host/vars/centos_7.yml @@ -0,0 +1,6 @@ +--- +container_packages: + - podman + - podman-docker + +pip_executable: pip diff --git a/roles/container-host/vars/ubuntu_18.yml b/roles/container-host/vars/ubuntu_18.yml new file mode 100644 index 00000000..4dc4ea94 --- /dev/null +++ b/roles/container-host/vars/ubuntu_18.yml @@ -0,0 +1,7 @@ +--- +container_packages: + - docker.io + - python-setuptools + - python-pip + +pip_executable: pip