From dd6408dbceebfe66433f000737ed9e016f2709a4 Mon Sep 17 00:00:00 2001 From: Krzysztof Klimonda Date: Tue, 28 May 2019 12:04:59 +0000 Subject: [PATCH] Elevate privileges for copying gnocchi policy.json Change-Id: I616a30acf38a61265f3005c712767d5221abf5c5 Closes-Bug: #1830723 (cherry picked from commit 4a60dc21e5f845d834247caf423801d84b5c987a) --- ansible/roles/gnocchi/tasks/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible/roles/gnocchi/tasks/config.yml b/ansible/roles/gnocchi/tasks/config.yml index bf7f406945..88fca1614b 100644 --- a/ansible/roles/gnocchi/tasks/config.yml +++ b/ansible/roles/gnocchi/tasks/config.yml @@ -100,6 +100,7 @@ src: "{{ gnocchi_policy_file_path }}" dest: "{{ node_config_directory }}/{{ item.key }}/{{ gnocchi_policy_file }}" mode: "0660" + become: true register: gnocchi_policy_overwriting when: - gnocchi_policy_file is defined