watcher: add missing become for copying configs

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
Change-Id: Iac1e82710df3ea82c17a6dcbf5d1821362aaa4a5
This commit is contained in:
Seena Fallah 2021-08-02 11:58:08 +04:30
parent e4a1683f2a
commit 948e9ae707

@ -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]