mirror of https://github.com/ceph/ceph-ansible.git
41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
YAML
---
|
|
- 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: add ceph stable repository
|
|
package:
|
|
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
|
|
state: present
|
|
changed_when: false
|
|
when: ceph_stable
|
|
|
|
- name: add ceph development repository
|
|
package:
|
|
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
|
|
state: present
|
|
changed_when: false
|
|
when: ceph_dev
|
|
|
|
- name: add custom repo
|
|
get_url:
|
|
url: "{{ ceph_custom_repo }}"
|
|
dest: /etc/yum.repos.d
|
|
owner: root
|
|
group: root
|
|
when: ceph_custom
|
|
|
|
# Remove yum caches so yum doesn't get confused if we are reinstalling a different ceph version
|
|
- name: purge yum cache
|
|
command: yum clean all
|
|
when:
|
|
ansible_pkg_mgr == 'yum'
|