File tree Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
- name : Bootstrap cephadm
3
3
block :
4
- - name : Template out cluster.yml
5
- template :
6
- src : " templates/cluster.yml.j2"
7
- dest : " /tmp/cephadm_cluster.yml"
8
- become : true
9
- run_once : True
10
-
11
4
- name : Bootstrap cephadm
12
5
vars :
13
6
mon_ip : " {{ hostvars[inventory_hostname]['ansible_'~cephadm_public_interface].ipv4.address }}"
48
41
template :
49
42
src : " templates/cluster.yml.j2"
50
43
dest : " /var/run/ceph/{{ cephadm_fsid }}/cephadm_cluster.yml"
44
+ owner : root
45
+ group : root
46
+ mode : 0644
51
47
become : true
52
48
run_once : True
53
49
Original file line number Diff line number Diff line change 12
12
copy :
13
13
content : " {{ cephadm_osd_spec | to_nice_yaml(indent=2) }}"
14
14
dest : " /var/run/ceph/{{ cephadm_fsid }}/osd_spec.yml"
15
+ owner : root
16
+ group : root
17
+ mode : 0644
15
18
when : cephadm_osd_spec | length > 0
16
19
become : true
17
20
Original file line number Diff line number Diff line change 18
18
file :
19
19
path : /etc/ceph
20
20
state : directory
21
+ owner : root
22
+ group : root
23
+ mode : 0755
21
24
become : true
22
25
23
26
- name : Check if /etc/ceph/ceph.conf exists
43
46
copy :
44
47
content : " {{ cephadm_ssh_key.public_key }}"
45
48
dest : " {{ cephadm_ssh_public_key }}"
49
+ owner : root
50
+ group : root
51
+ mode : 0644
46
52
become : true
47
53
when : not cephadm_check_ceph_id.stat.exists
48
54
delegate_to : " {{ groups['mons'][0] }}"
54
60
state : present
55
61
key : " {{ cephadm_ssh_key.public_key }}"
56
62
become : true
57
- when : not cephadm_check_ceph_id.stat.exists
You can’t perform that action at this time.
0 commit comments