---
- name: Install dependencies
  yum: >
    name={{ item }}
    state=present
  with_items:
    - python-pycurl
    - ntp
    - hdparm

- name: Install the Ceph stable repository key
  rpm_key: >
    key={{ ceph_key }}
    state=present
  when: ceph_stable

- name: Install the Ceph developement repository key
  rpm_key: >
    key={{ ceph_key }}
    state=present
  when: ceph_dev

- name: Add Ceph stable repository
  command: "rpm -U http://ceph.com/rpm-{{ ceph_stable_release }}/{{ redhat_distro }}/noarch/ceph-release-1-0.el6.noarch.rpm creates=/etc/yum.repos.d/ceph.repo"
  when: ceph_stable

- name: Add Ceph development repository
  command: "rpm -U 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 creates=/etc/yum.repos.d/ceph.repo"
  when: ceph_dev

- name: Install Ceph
  yum: >
    name=ceph
    state=latest


---
- name: Install dependencies
  yum: >
    name={{ item }}
    state=present
  with_items:
    - python-pycurl
    - ntp
    - hdparm

- name: Install the Ceph stable repository key
  rpm_key: >
    key={{ ceph_key }}
    state=present
  when: ceph_stable

- name: Install the Ceph developement repository key
  rpm_key: >
    key={{ ceph_key }}
    state=present
  when: ceph_dev

- name: Add Ceph stable repository
  command: "rpm -U http://ceph.com/rpm-{{ ceph_stable_release }}/{{ ceph_stable_redhat_distro }}/noarch/ceph-release-1-0.el6.noarch.rpm creates=/etc/yum.repos.d/ceph.repo"
  when: ceph_stable

- name: Add Ceph development repository
  command: "rpm -U 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 creates=/etc/yum.repos.d/ceph.repo"
  when: ceph_dev

- name: Install Ceph
  yum: >
    name=ceph
    state=latest


Fix wrong vars during RH install
Fix wrong vars during RH install

Signed-off-by: Sébastien Han <c944cdd58d18a32bd34d661eafe66112d96c6cc1@enovance.com>
