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"