Add argus service for update management
This commit is contained in:
parent
89ced72d09
commit
d0f96ef6cd
1 changed files with 208 additions and 6 deletions
15
playbooks/roles/argus/tasks/create-service.yml
Normal file
15
playbooks/roles/argus/tasks/create-service.yml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
- name: Set common facts
|
||||
ansible.builtin.include_tasks: "{{ tasks_dir }}/set-default-facts.yml"
|
||||
|
||||
- name: Create config.d directory
|
||||
ansible.builtin.file:
|
||||
path: "{{ argus_confd_path }}"
|
||||
state: directory
|
||||
mode: "0755"
|
||||
|
||||
- name: Create service config
|
||||
ansible.builtin.copy:
|
||||
dest: "{{ (argus_confd_path, argus_service_name + '.yml') | path_join }}"
|
||||
content: "{{ argus_service_ver | to_nice_yaml }}"
|
||||
mode: "0644"
|
||||
notify: Merge argus configs
|
||||
Loading…
Reference in a new issue