Merge "watcher: add missing become for copying configs"
This commit is contained in:
commit
82441350f2
@ -40,6 +40,7 @@
|
|||||||
src: "{{ item.key }}.json.j2"
|
src: "{{ item.key }}.json.j2"
|
||||||
dest: "{{ node_config_directory }}/{{ item.key }}/config.json"
|
dest: "{{ node_config_directory }}/{{ item.key }}/config.json"
|
||||||
mode: "0660"
|
mode: "0660"
|
||||||
|
become: true
|
||||||
when:
|
when:
|
||||||
- inventory_hostname in groups[item.value.group]
|
- inventory_hostname in groups[item.value.group]
|
||||||
- item.value.enabled | bool
|
- item.value.enabled | bool
|
||||||
@ -59,6 +60,7 @@
|
|||||||
- "{{ node_custom_config }}/watcher/{{ inventory_hostname }}/watcher.conf"
|
- "{{ node_custom_config }}/watcher/{{ inventory_hostname }}/watcher.conf"
|
||||||
dest: "{{ node_config_directory }}/{{ item.key }}/watcher.conf"
|
dest: "{{ node_config_directory }}/{{ item.key }}/watcher.conf"
|
||||||
mode: "0660"
|
mode: "0660"
|
||||||
|
become: true
|
||||||
when:
|
when:
|
||||||
- inventory_hostname in groups[item.value.group]
|
- inventory_hostname in groups[item.value.group]
|
||||||
- item.value.enabled | bool
|
- item.value.enabled | bool
|
||||||
@ -71,6 +73,7 @@
|
|||||||
src: "{{ watcher_policy_file_path }}"
|
src: "{{ watcher_policy_file_path }}"
|
||||||
dest: "{{ node_config_directory }}/{{ item.key }}/{{ watcher_policy_file }}"
|
dest: "{{ node_config_directory }}/{{ item.key }}/{{ watcher_policy_file }}"
|
||||||
mode: "0660"
|
mode: "0660"
|
||||||
|
become: true
|
||||||
when:
|
when:
|
||||||
- watcher_policy_file is defined
|
- watcher_policy_file is defined
|
||||||
- inventory_hostname in groups[item.value.group]
|
- inventory_hostname in groups[item.value.group]
|
||||||
|
Loading…
Reference in New Issue
Block a user