Add argus service for update management
This commit is contained in:
parent
89ced72d09
commit
d0f96ef6cd
1 changed files with 208 additions and 6 deletions
32
playbooks/roles/argus/tasks/main.yml
Normal file
32
playbooks/roles/argus/tasks/main.yml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
---
|
||||
- name: Set common facts
|
||||
ansible.builtin.include_tasks: "{{ tasks_dir }}/set-default-facts.yml"
|
||||
|
||||
- name: Deploy {{ service_name }}
|
||||
vars:
|
||||
svc: "{{ argus_svc }}"
|
||||
env: "{{ argus_env }}"
|
||||
compose: "{{ argus_compose }}"
|
||||
ver: "{{ argus_ver }}"
|
||||
block:
|
||||
- name: Import prepare tasks for common service
|
||||
ansible.builtin.include_tasks: "{{ tasks_dir }}/prepare-common-service.yml"
|
||||
|
||||
- name: Create config.d directory
|
||||
ansible.builtin.file:
|
||||
path: "{{ argus_confd_path }}"
|
||||
state: directory
|
||||
mode: "0755"
|
||||
|
||||
- name: Create base config
|
||||
ansible.builtin.copy:
|
||||
dest: "{{ (argus_confd_path, 'config.yml') | path_join }}"
|
||||
content: "{{ argus_yml | to_nice_yaml }}"
|
||||
mode: "0644"
|
||||
notify: Merge argus configs
|
||||
|
||||
- name: Merge argus configs
|
||||
ansible.builtin.include_tasks: tasks/merge-configs.yml
|
||||
|
||||
- name: Import start tasks for common service
|
||||
ansible.builtin.include_tasks: "{{ tasks_dir }}/start-common-service.yml"
|
||||
Loading…
Reference in a new issue