2017-08-03 21:30:25 +08:00
|
|
|
---
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Configure red hat custom rpm key
|
|
|
|
ansible.builtin.rpm_key:
|
2019-08-26 02:47:32 +08:00
|
|
|
key: "{{ ceph_custom_key }}"
|
|
|
|
state: present
|
|
|
|
register: result
|
|
|
|
until: result is succeeded
|
|
|
|
when: ceph_custom_key is defined
|
|
|
|
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Configure red hat custom repository
|
|
|
|
ansible.builtin.get_url:
|
2017-08-03 21:30:25 +08:00
|
|
|
url: "{{ ceph_custom_repo }}"
|
|
|
|
dest: /etc/yum.repos.d
|
|
|
|
owner: root
|
|
|
|
group: root
|
2024-02-14 18:14:02 +08:00
|
|
|
mode: "0644"
|