From d0a3034857175272cfcafe46fa34c99ce125a61e Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Tue, 22 Aug 2017 14:42:32 -0500 Subject: [PATCH] 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 --- roles/ceph-config/tasks/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/ceph-config/tasks/main.yml b/roles/ceph-config/tasks/main.yml index e88743f3b..ce609e079 100644 --- a/roles/ceph-config/tasks/main.yml +++ b/roles/ceph-config/tasks/main.yml @@ -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" -- 2.39.5