services/roles/webdis/tasks/main.yml

22 lines
635 B
YAML
Raw Normal View History

2023-12-04 18:02:08 +00:00
---
2023-12-14 01:20:13 +00:00
- name: Set common facts
ansible.builtin.import_tasks: tasks/set-default-facts.yml
2023-12-04 18:02:08 +00:00
- name: Deploy {{ svc.name }}
2023-12-14 01:20:13 +00:00
vars:
svc: "{{ webdis_svc }}"
env: "{{ webdis_env }}"
compose: "{{ webdis_compose }}"
2023-12-04 18:02:08 +00:00
block:
2023-12-13 01:43:15 +00:00
- name: Import prepare tasks for common service
ansible.builtin.import_tasks: tasks/prepare-common-service.yml
2023-12-04 18:02:08 +00:00
- name: Copy the config
ansible.builtin.copy:
src: webdis.json
dest: "{{ (service_path, 'webdis.json') | path_join }}"
2023-12-13 01:43:15 +00:00
mode: "0755"
2023-12-04 18:02:08 +00:00
2023-12-13 01:43:15 +00:00
- name: Import start tasks for common service
ansible.builtin.import_tasks: tasks/start-common-service.yml