From 948e9ae707862c8d50c22c6c5cf69423c613a2b7 Mon Sep 17 00:00:00 2001 From: Seena Fallah Date: Mon, 2 Aug 2021 11:58:08 +0430 Subject: [PATCH] watcher: add missing become for copying configs Signed-off-by: Seena Fallah Change-Id: Iac1e82710df3ea82c17a6dcbf5d1821362aaa4a5 --- ansible/roles/watcher/tasks/config.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ansible/roles/watcher/tasks/config.yml b/ansible/roles/watcher/tasks/config.yml index a634d03db1..2b1688a09c 100644 --- a/ansible/roles/watcher/tasks/config.yml +++ b/ansible/roles/watcher/tasks/config.yml @@ -40,6 +40,7 @@ src: "{{ item.key }}.json.j2" dest: "{{ node_config_directory }}/{{ item.key }}/config.json" mode: "0660" + become: true when: - inventory_hostname in groups[item.value.group] - item.value.enabled | bool @@ -59,6 +60,7 @@ - "{{ node_custom_config }}/watcher/{{ inventory_hostname }}/watcher.conf" dest: "{{ node_config_directory }}/{{ item.key }}/watcher.conf" mode: "0660" + become: true when: - inventory_hostname in groups[item.value.group] - item.value.enabled | bool @@ -71,6 +73,7 @@ src: "{{ watcher_policy_file_path }}" dest: "{{ node_config_directory }}/{{ item.key }}/{{ watcher_policy_file }}" mode: "0660" + become: true when: - watcher_policy_file is defined - inventory_hostname in groups[item.value.group]