Elevate privileges for copying gnocchi policy.json

Change-Id: I616a30acf38a61265f3005c712767d5221abf5c5
Closes-Bug: #1830723
(cherry picked from commit 4a60dc21e5)
This commit is contained in:
Krzysztof Klimonda 2019-05-28 12:04:59 +00:00 committed by Mark Goddard
parent 6ecab061f9
commit dd6408dbce

View File

@ -100,6 +100,7 @@
src: "{{ gnocchi_policy_file_path }}" src: "{{ gnocchi_policy_file_path }}"
dest: "{{ node_config_directory }}/{{ item.key }}/{{ gnocchi_policy_file }}" dest: "{{ node_config_directory }}/{{ item.key }}/{{ gnocchi_policy_file }}"
mode: "0660" mode: "0660"
become: true
register: gnocchi_policy_overwriting register: gnocchi_policy_overwriting
when: when:
- gnocchi_policy_file is defined - gnocchi_policy_file is defined