Merge "watcher: add missing become for copying configs"

This commit is contained in:
Zuul 2021-08-03 09:23:57 +00:00 committed by Gerrit Code Review
commit 82441350f2

View File

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