diff --git a/group_vars/all.yml.sample b/group_vars/all.yml.sample index eaa71335dc0..21ace5de2c7 100644 --- a/group_vars/all.yml.sample +++ b/group_vars/all.yml.sample @@ -85,7 +85,7 @@ dummy: #centos_package_dependencies: # - epel-release -# - libselinux-python +# - "{{ 'libselinux-python' if ansible_distribution_major_version | int != 8 else 'python3-libselinux'à }}" #redhat_package_dependencies: [] diff --git a/group_vars/rhcs.yml.sample b/group_vars/rhcs.yml.sample index 315db4f7a34..abe4dc16b44 100644 --- a/group_vars/rhcs.yml.sample +++ b/group_vars/rhcs.yml.sample @@ -85,7 +85,7 @@ fetch_directory: ~/ceph-ansible-keys #centos_package_dependencies: # - epel-release -# - libselinux-python +# - "{{ 'libselinux-python' if ansible_distribution_major_version | int != 8 else 'python3-libselinux'à }}" #redhat_package_dependencies: [] diff --git a/roles/ceph-common/tasks/installs/redhat_community_repository.yml b/roles/ceph-common/tasks/installs/redhat_community_repository.yml index 332491d4a5f..61e8363e1fc 100644 --- a/roles/ceph-common/tasks/installs/redhat_community_repository.yml +++ b/roles/ceph-common/tasks/installs/redhat_community_repository.yml @@ -5,6 +5,7 @@ register: result until: result is succeeded tags: with_pkg + when: ansible_distribution_major_version | int == 8 - name: configure red hat ceph community repository stable key rpm_key: diff --git a/roles/ceph-defaults/defaults/main.yml b/roles/ceph-defaults/defaults/main.yml index 5e45b37a209..a054828ba87 100644 --- a/roles/ceph-defaults/defaults/main.yml +++ b/roles/ceph-defaults/defaults/main.yml @@ -77,7 +77,7 @@ debian_package_dependencies: [] centos_package_dependencies: - epel-release - - libselinux-python + - "{{ 'libselinux-python' if ansible_distribution_major_version | int != 8 else 'python3-libselinux'à }}" redhat_package_dependencies: []