From 799efc3b8ec811eee54cbf785def5960a821dd80 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Tue, 16 Aug 2022 14:36:28 +0900 Subject: [PATCH] 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 --- playbooks/prepare-node-common.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/playbooks/prepare-node-common.yaml b/playbooks/prepare-node-common.yaml index e4fae2394..2902c33fa 100644 --- a/playbooks/prepare-node-common.yaml +++ b/playbooks/prepare-node-common.yaml @@ -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 }}"