Skip to content
Snippets Groups Projects
Commit 82441350 authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "watcher: add missing become for copying configs"

parents ef6698dc 948e9ae7
No related branches found
No related tags found
No related merge requests found
......@@ -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]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment