12 lines
413 B
YAML
12 lines
413 B
YAML
- name: Collect configs
|
|
ansible.builtin.shell:
|
|
cmd: yq ea '. as $item ireduce ({}; . * $item )' {{ (argus_confd_path, '*') | path_join }}
|
|
chdir: "{{ service_path }}"
|
|
register: argus_collected_conf
|
|
|
|
- name: Create config
|
|
ansible.builtin.copy:
|
|
dest: "{{ (service_path, 'config.yml') | path_join }}"
|
|
content: "{{ argus_collected_conf.stdout }}"
|
|
mode: "0644"
|
|
notify: Restart service argus
|