Merge "Use slurp to get the content of the ceph.conf file"
This commit is contained in:
commit
61dfc09f3c
@ -24,8 +24,7 @@
|
|||||||
- ceph-config-create-dir
|
- ceph-config-create-dir
|
||||||
|
|
||||||
- name: Get ceph.conf and store contents when ceph_conf_file is not defined
|
- name: Get ceph.conf and store contents when ceph_conf_file is not defined
|
||||||
command: |
|
slurp: src=/etc/ceph/ceph.conf
|
||||||
cat /etc/ceph/ceph.conf
|
|
||||||
register: ceph_conf_content_mon
|
register: ceph_conf_content_mon
|
||||||
delegate_to: '{{ ceph_mon_host }}'
|
delegate_to: '{{ ceph_mon_host }}'
|
||||||
changed_when: false
|
changed_when: false
|
||||||
@ -35,7 +34,7 @@
|
|||||||
|
|
||||||
- name: Register ceph_conf fact when ceph_conf_file is not defined
|
- name: Register ceph_conf fact when ceph_conf_file is not defined
|
||||||
set_fact:
|
set_fact:
|
||||||
ceph_conf: "{{ ceph_conf_content_mon.stdout }}"
|
ceph_conf: "{{ ceph_conf_content_mon.content | b64decode }}"
|
||||||
when: ceph_conf_file is not defined
|
when: ceph_conf_file is not defined
|
||||||
tags:
|
tags:
|
||||||
- ceph-config-get-config
|
- ceph-config-get-config
|
||||||
|
Loading…
x
Reference in New Issue
Block a user