--- - name: install the ceph stable repository key rpm_key: key: "{{ ceph_stable_key }}" state: present when: ceph_stable - name: install the ceph development repository key rpm_key: key: "{{ ceph_dev_key }}" state: present when: ceph_dev - name: install inktank ceph enterprise repository key rpm_key: key: "{{ ceph_stable_ice_temp_path }}/release.asc" state: present when: ceph_stable_ice - name: add ceph stable repository yum: name: http://download.ceph.com/rpm-{{ ceph_stable_release }}/{{ ceph_stable_redhat_distro }}/noarch/ceph-release-1-0.{{ ceph_stable_redhat_distro|replace('rhel', 'el') }}.noarch.rpm changed_when: false when: - ceph_stable - ansible_pkg_mgr == "yum" - name: add ceph stable repository dnf: name: http://download.ceph.com/rpm-{{ ceph_stable_release }}/{{ ceph_stable_redhat_distro }}/noarch/ceph-release-1-0.{{ ceph_stable_redhat_distro|replace('rhel', 'el') }}.noarch.rpm changed_when: false when: - ceph_stable - ansible_pkg_mgr == "dnf" - name: add ceph development repository yum: name: http://gitbuilder.ceph.com/ceph-rpm-{{ ceph_dev_redhat_distro }}-x86_64-basic/ref/{{ ceph_dev_branch }}/noarch/ceph-release-1-0.{{ ceph_stable_redhat_distro }}.noarch.rpm changed_when: false when: - ceph_dev - ansible_pkg_mgr == "yum" - name: add ceph development repository dnf: name: http://gitbuilder.ceph.com/ceph-rpm-{{ ceph_dev_redhat_distro }}-x86_64-basic/ref/{{ ceph_dev_branch }}/noarch/ceph-release-1-0.{{ ceph_stable_redhat_distro }}.noarch.rpm changed_when: false when: - ceph_dev - ansible_pkg_mgr == "dnf" - name: add inktank ceph enterprise repository template: src: "{{ role_path }}/templates/redhat_ice_repo.j2" dest: /etc/yum.repos.d/ice.repo owner: root group: root mode: 0644 when: ceph_stable_ice