mirror of https://github.com/ceph/ceph-ansible.git
ceph-config: when using local_action set become: false
There should be no need to use sudo when writing or using these files. It creates an issue when the user running ansible-playbook does not have sudo privs. Signed-off-by: Andrew Schoen <aschoen@redhat.com>pull/1809/head
parent
ac818f5bba
commit
910bb036c6
|
@ -14,14 +14,17 @@
|
||||||
|
|
||||||
- name: template ceph_conf_overrides
|
- name: template ceph_conf_overrides
|
||||||
local_action: copy content="{{ ceph_conf_overrides }}" dest="{{ fetch_directory }}/ceph_conf_overrides_temp"
|
local_action: copy content="{{ ceph_conf_overrides }}" dest="{{ fetch_directory }}/ceph_conf_overrides_temp"
|
||||||
|
become: false
|
||||||
run_once: true
|
run_once: true
|
||||||
|
|
||||||
- name: get rendered ceph_conf_overrides
|
- name: get rendered ceph_conf_overrides
|
||||||
local_action: set_fact ceph_conf_overrides_rendered="{{ lookup('template', '{{ fetch_directory }}/ceph_conf_overrides_temp') | from_yaml }}"
|
local_action: set_fact ceph_conf_overrides_rendered="{{ lookup('template', '{{ fetch_directory }}/ceph_conf_overrides_temp') | from_yaml }}"
|
||||||
|
become: false
|
||||||
run_once: true
|
run_once: true
|
||||||
|
|
||||||
- name: remove tmp template file for ceph_conf_overrides
|
- name: remove tmp template file for ceph_conf_overrides
|
||||||
local_action: file path="{{ fetch_directory }}/ceph_conf_overrides_temp" state=absent
|
local_action: file path="{{ fetch_directory }}/ceph_conf_overrides_temp" state=absent
|
||||||
|
become: false
|
||||||
run_once: true
|
run_once: true
|
||||||
|
|
||||||
- name: "generate ceph configuration file: {{ cluster }}.conf"
|
- name: "generate ceph configuration file: {{ cluster }}.conf"
|
||||||
|
|
Loading…
Reference in New Issue