mirror of https://github.com/ceph/ceph-ansible.git
48 lines
1.6 KiB
YAML
48 lines
1.6 KiB
YAML
---
|
|
- name: determine if node is registered with subscription-manager.
|
|
command: subscription-manager identity
|
|
register: subscription
|
|
changed_when: false
|
|
|
|
- name: check if the red hat storage monitor repo is already present
|
|
shell: yum --noplugins --cacheonly repolist | grep -sq rhel-7-server-rhceph-1.3-mon-rpms
|
|
changed_when: false
|
|
ignore_errors: true
|
|
register: rh_storage_mon_repo
|
|
when: mon_group_name in group_names
|
|
|
|
- name: enable red hat storage monitor repository
|
|
command: subscription-manager repos --enable rhel-7-server-rhceph-1.3-mon-rpms
|
|
changed_when: false
|
|
when:
|
|
mon_group_name in group_names and
|
|
rh_storage_mon_repo.rc != 0
|
|
|
|
- name: check if the red hat storage osd repo is already present
|
|
shell: yum --noplugins --cacheonly repolist | grep -sq rhel-7-server-rhceph-1.3-osd-rpms
|
|
changed_when: false
|
|
ignore_errors: true
|
|
register: rh_storage_osd_repo
|
|
when: osd_group_name in group_names
|
|
|
|
- name: enable red hat storage osd repository
|
|
command: subscription-manager repos --enable rhel-7-server-rhceph-1.3-osd-rpms
|
|
changed_when: false
|
|
when:
|
|
osd_group_name in group_names and
|
|
rh_storage_osd_repo.rc != 0
|
|
|
|
- name: check if the red hat storage rados gateway repo is already present
|
|
shell: yum --noplugins --cacheonly repolist | grep -sq rhel-7-server-rhceph-1.3-tools-rpms
|
|
changed_when: false
|
|
ignore_errors: true
|
|
register: rh_storage_rgw_repo
|
|
when: rgw_group_name in group_names
|
|
|
|
- name: enable red hat storage rados gateway repository
|
|
command: subscription-manager repos --enable rhel-7-server-rhceph-1.3-tools-rpms
|
|
changed_when: false
|
|
when:
|
|
rgw_group_name in group_names and
|
|
rh_storage_rgw_repo.rc != 0
|