CentOS: Ensure python3-pip is installed

The python3-pip package is required in several jobs(eg. cookiecutter).
This change ensures the package is installed in CentOS.

Change-Id: I4732a601cb55e55de0c460f7f94682f4f6fd760c
This commit is contained in:
Takashi Kajinami 2022-08-16 14:36:28 +09:00
parent c7bf0520db
commit 799efc3b8e
1 changed files with 13 additions and 0 deletions

View File

@ -49,6 +49,19 @@
- ansible_os_family == 'RedHat'
- ansible_distribution_major_version >= "9"
- block:
- name: install required packages (CentOS)
dnf:
name: "{{ item }}"
state: present
become: true
ignore_errors: true
with_items:
- python3-pip
when:
- ansible_os_family == 'RedHat'
- ansible_distribution == 'CentOS'
- name: Install Ruby dependencies (Ubuntu)
apt:
name: "{{ item }}"