mirror of https://github.com/ceph/ceph-ansible.git
ceph-config: write ceph_conf_overrides_temp to fetch_directory
because /tmp is not always writable, but we can assume that the fetch_directory will be Signed-off-by: Andrew Schoen <aschoen@redhat.com>pull/1804/head
parent
80dc5eead7
commit
d0a3034857
|
@ -13,15 +13,15 @@
|
|||
- /etc/ceph/ceph.d/
|
||||
|
||||
- name: template ceph_conf_overrides
|
||||
local_action: copy content="{{ ceph_conf_overrides }}" dest=/tmp/ceph_conf_overrides_temp
|
||||
local_action: copy content="{{ ceph_conf_overrides }}" dest="{{ fetch_directory }}/ceph_conf_overrides_temp"
|
||||
run_once: true
|
||||
|
||||
- name: get rendered ceph_conf_overrides
|
||||
local_action: set_fact ceph_conf_overrides_rendered="{{ lookup('template', '/tmp/ceph_conf_overrides_temp') | from_yaml }}"
|
||||
local_action: set_fact ceph_conf_overrides_rendered="{{ lookup('template', '{{ fetch_directory }}/ceph_conf_overrides_temp') | from_yaml }}"
|
||||
run_once: true
|
||||
|
||||
- name: remove tmp template file for ceph_conf_overrides
|
||||
local_action: file path=/tmp/ceph_conf_overrides_temp state=absent
|
||||
local_action: file path="{{ fetch_directory }}/ceph_conf_overrides_temp" state=absent
|
||||
run_once: true
|
||||
|
||||
- name: "generate ceph configuration file: {{ cluster }}.conf"
|
||||
|
|
Loading…
Reference in New Issue