2017-08-03 21:30:25 +08:00
|
|
|
---
|
2019-03-15 23:30:15 +08:00
|
|
|
- name: install yum plugin priorities
|
|
|
|
package:
|
|
|
|
name: yum-plugin-priorities
|
|
|
|
register: result
|
|
|
|
until: result is succeeded
|
2019-04-01 23:46:15 +08:00
|
|
|
tags: with_pkg
|
2019-11-19 04:05:16 +08:00
|
|
|
when: ansible_distribution_major_version | int == 7
|
2019-03-15 23:30:15 +08:00
|
|
|
|
2017-08-03 21:30:25 +08:00
|
|
|
- name: configure red hat ceph community repository stable key
|
|
|
|
rpm_key:
|
|
|
|
key: "{{ ceph_stable_key }}"
|
|
|
|
state: present
|
2018-12-20 17:00:26 +08:00
|
|
|
register: result
|
|
|
|
until: result is succeeded
|
2017-08-03 21:30:25 +08:00
|
|
|
|
|
|
|
- name: configure red hat ceph stable community repository
|
|
|
|
yum_repository:
|
|
|
|
name: ceph_stable
|
2019-03-05 00:10:24 +08:00
|
|
|
description: Ceph Stable $basearch repo
|
2017-08-03 21:30:25 +08:00
|
|
|
gpgcheck: yes
|
|
|
|
state: present
|
|
|
|
gpgkey: "{{ ceph_stable_key }}"
|
|
|
|
baseurl: "{{ ceph_mirror }}/rpm-{{ ceph_stable_release }}/{{ ceph_stable_redhat_distro }}/$basearch"
|
2019-03-05 00:10:24 +08:00
|
|
|
file: ceph_stable
|
2019-03-15 23:30:15 +08:00
|
|
|
priority: 2
|
2019-03-05 00:10:24 +08:00
|
|
|
register: result
|
|
|
|
until: result is succeeded
|
|
|
|
|
|
|
|
- name: configure red hat ceph stable noarch community repository
|
|
|
|
yum_repository:
|
|
|
|
name: ceph_stable_noarch
|
|
|
|
description: Ceph Stable noarch repo
|
|
|
|
gpgcheck: yes
|
|
|
|
state: present
|
|
|
|
gpgkey: "{{ ceph_stable_key }}"
|
|
|
|
baseurl: "{{ ceph_mirror }}/rpm-{{ ceph_stable_release }}/{{ ceph_stable_redhat_distro }}/noarch"
|
|
|
|
file: ceph_stable
|
2019-03-15 23:30:15 +08:00
|
|
|
priority: 2
|
2018-12-20 17:00:26 +08:00
|
|
|
register: result
|
2019-04-01 23:46:15 +08:00
|
|
|
until: result is succeeded
|