]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
common: install python3-packaging on centos el8
authorGuillaume Abrioux <gabrioux@ibm.com>
Thu, 4 Apr 2024 08:21:56 +0000 (10:21 +0200)
committerGuillaume Abrioux <gabrioux@ibm.com>
Thu, 4 Apr 2024 12:23:06 +0000 (14:23 +0200)
ceph-volume has a dependency on `python3-packaging` which is available
in PowerTools repo.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit 8ebff2124db1e670099b7e6d141d6c3178c3c181)

roles/ceph-common/tasks/installs/configure_redhat_repository_installation.yml

index 7ad607f52581657975c7e0ad54f089fa1703c629..43d0dd6b918961f641c164f8ac9f26e4ad87b59f 100644 (file)
@@ -8,6 +8,13 @@
   when:
     - ansible_facts['distribution'] == 'Rocky'
 
+- name: Install python3-packaging
+  ansible.builtin.yum:
+    name: python3-packaging
+    enablerepo: powertools
+    state: present
+  when: ansible_facts['distribution_major_version'] | int < 9
+
 - name: Include redhat_community_repository.yml
   ansible.builtin.include_tasks: redhat_community_repository.yml
   when: ceph_repository == 'community'