Add argus service for update management
This commit is contained in:
parent
89ced72d09
commit
d0f96ef6cd
1 changed files with 208 additions and 6 deletions
12
playbooks/roles/argus/tasks/merge-configs.yml
Normal file
12
playbooks/roles/argus/tasks/merge-configs.yml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
- 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
|
||||
Loading…
Reference in a new issue