diff --git a/playbooks/ceph-install.yml b/playbooks/ceph-install.yml index 6987d9fee4..42c3ed4704 100644 --- a/playbooks/ceph-install.yml +++ b/playbooks/ceph-install.yml @@ -99,7 +99,7 @@ vars: apt_package_pinning_file_name: "ceph_community_pin.pref" apt_package_pinning_priority: "{{ (ceph_repository == 'community') | ternary(1000, 100) }}" - apt_pinned_packages: [{ package: '*', release: 'ceph.com' }] + apt_pinned_packages: [{ package: '*', release: "{{ (ansible_distribution_release == 'bionic') | ternary('Ubuntu', 'ceph.com') }}" }] when: - ansible_pkg_mgr == 'apt' @@ -203,7 +203,7 @@ vars: apt_package_pinning_file_name: "ceph_community_pin.pref" apt_package_pinning_priority: "{{ (ceph_repository == 'community') | ternary(1000, 100) }}" - apt_pinned_packages: [{ package: '*', release: 'ceph.com' }] + apt_pinned_packages: [{ package: '*', release: "{{ (ansible_distribution_release == 'bionic') | ternary('Ubuntu', 'ceph.com') }}" }] when: - ansible_pkg_mgr == 'apt' diff --git a/playbooks/ceph-rgw-install.yml b/playbooks/ceph-rgw-install.yml index 352a0ad518..f270187456 100644 --- a/playbooks/ceph-rgw-install.yml +++ b/playbooks/ceph-rgw-install.yml @@ -49,7 +49,7 @@ vars: apt_package_pinning_file_name: "ceph_community_pin.pref" apt_package_pinning_priority: "{{ (ceph_repository == 'community') | ternary(1000, 100) }}" - apt_pinned_packages: [{ package: '*', release: 'ceph.com' }] + apt_pinned_packages: [{ package: '*', release: "{{ (ansible_distribution_release == 'bionic') | ternary('Ubuntu', 'ceph.com') }}" }] when: - ansible_pkg_mgr == 'apt'