File tree Expand file tree Collapse file tree 2 files changed +26
-3
lines changed Expand file tree Collapse file tree 2 files changed +26
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- - name : Add Ceph signing keys
2
+ # Remove any old Ceph keys added to the main keyring.
3
+ - name : Clean up old key
3
4
apt_key :
4
- keyserver : keyserver.ubuntu.com
5
5
id : E84AC2C0460F3994
6
+ state : absent
7
+ become : true
8
+
9
+ - name : Ensure keys directory exists
10
+ file :
11
+ path : " {{ cephadm_apt_key_path | dirname }}"
12
+ owner : root
13
+ group : root
14
+ mode : 0755
15
+ state : directory
16
+ when : not cephadm_custom_repos | bool
17
+ become : true
18
+
19
+ - name : Ensure keys exist
20
+ get_url :
21
+ url : " {{ cephadm_apt_key_url }}"
22
+ dest : " {{ cephadm_apt_key_path }}"
23
+ owner : root
24
+ group : root
25
+ mode : 0644
26
+ when : not cephadm_custom_repos | bool
6
27
become : true
7
28
8
29
- name : Ensure Ceph repositories are defined
9
30
apt_repository :
10
- repo : " deb https://download.ceph.com/debian-{{ item }}/ {{ cephadm_apt_repo_dist }} main"
31
+ repo : " deb [signed-by={{ cephadm_apt_key_path }}] https://download.ceph.com/debian-{{ item }}/ {{ cephadm_apt_repo_dist }} main"
11
32
state : " {{ 'present' if item == cephadm_ceph_release else 'absent' }}"
12
33
when : not cephadm_custom_repos | bool
13
34
become : true
Original file line number Diff line number Diff line change @@ -5,3 +5,5 @@ cephadm_rpm_repos:
5
5
cephadm_ceph_releases :
6
6
- " octopus"
7
7
- " pacific"
8
+ cephadm_apt_key_url : " https://download.ceph.com/keys/release.asc"
9
+ cephadm_apt_key_path : " /usr/local/share/keyrings/ceph.asc"
You can’t perform that action at this time.
0 commit comments