mirror of https://github.com/ceph/ceph-ansible.git
use yum to install ceph noarch package
command + creates prevent the package to be upgraded. rpm returns 0 when install success, and 1 (Error: Nothing to do) when reinstall the same packagepull/250/head
parent
2f0f873cc1
commit
95ca89695c
|
@ -29,18 +29,18 @@
|
||||||
when: ceph_stable_ice
|
when: ceph_stable_ice
|
||||||
|
|
||||||
- name: Add Ceph stable repository
|
- name: Add Ceph stable repository
|
||||||
command: >
|
yum: name=http://ceph.com/rpm-{{ ceph_stable_release }}/{{ ceph_stable_redhat_distro }}/noarch/ceph-release-1-0.{{ ceph_stable_redhat_distro|replace('rhel', 'el') }}.noarch.rpm
|
||||||
rpm -U http://ceph.com/rpm-{{ ceph_stable_release }}/{{ ceph_stable_redhat_distro }}/noarch/ceph-release-1-0.{{ ceph_stable_redhat_distro|replace('rhel', 'el') }}.noarch.rpm
|
register: repo_result
|
||||||
creates=/etc/yum.repos.d/ceph.repo
|
|
||||||
when: ceph_stable
|
when: ceph_stable
|
||||||
changed_when: False
|
failed_when: repo_result.rc > 1
|
||||||
|
changed_when: repo_result.rc == 0
|
||||||
|
|
||||||
- name: Add Ceph development repository
|
- name: Add Ceph development repository
|
||||||
command: >
|
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
|
||||||
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
|
register: repo_result
|
||||||
creates=/etc/yum.repos.d/ceph.repo
|
|
||||||
when: ceph_dev
|
when: ceph_dev
|
||||||
changed_when: False
|
failed_when: repo_result.rc > 1
|
||||||
|
changed_when: repo_result.rc == 0
|
||||||
|
|
||||||
- name: Add Inktank Ceph Enterprise repository
|
- name: Add Inktank Ceph Enterprise repository
|
||||||
template: >
|
template: >
|
||||||
|
|
Loading…
Reference in New Issue