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]