Escalate privileges when copy fluentd custom config

Fluentd custom output and filter configs target directory can have unknown
permissions, so copy these configs as root.

Change-Id: I1649f8cd4a5066245e8f79e8e71b6bbf04dbcb62
Closes-Bug: #1760213
This commit is contained in:
Stanislaw Bogatkin 2018-03-30 23:56:16 +03:00
parent fc2e745e91
commit 42deff5ce4

@ -88,6 +88,8 @@
template:
src: "{{ item.path }}"
dest: "{{ node_config_directory }}/fluentd/output/{{ item.path | basename }}"
mode: "0660"
become: true
register: fluentd_output_custom
when:
- enable_fluentd | bool
@ -137,6 +139,8 @@
template:
src: "{{ item.path }}"
dest: "{{ node_config_directory }}/fluentd/filter/{{ item.path | basename }}"
mode: "0660"
become: true
register: fluentd_filter_custom
with_items: "{{ find_custom_fluentd_filters.files }}"
notify: