22 lines
635 B
YAML
22 lines
635 B
YAML
|
---
|
||
|
- name: Set common facts
|
||
|
ansible.builtin.import_tasks: tasks/set-default-facts.yml
|
||
|
|
||
|
- name: Deploy {{ svc.name }}
|
||
|
vars:
|
||
|
svc: "{{ webdis_svc }}"
|
||
|
env: "{{ webdis_env }}"
|
||
|
compose: "{{ webdis_compose }}"
|
||
|
block:
|
||
|
- name: Import prepare tasks for common service
|
||
|
ansible.builtin.import_tasks: tasks/prepare-common-service.yml
|
||
|
|
||
|
- name: Copy the config
|
||
|
ansible.builtin.copy:
|
||
|
src: webdis.json
|
||
|
dest: "{{ (service_path, 'webdis.json') | path_join }}"
|
||
|
mode: "0755"
|
||
|
|
||
|
- name: Import start tasks for common service
|
||
|
ansible.builtin.import_tasks: tasks/start-common-service.yml
|