22 lines
767 B
YAML
22 lines
767 B
YAML
---
|
|
- name: Set common facts
|
|
ansible.builtin.include_tasks: "{{ tasks_dir }}/set-default-facts.yml"
|
|
|
|
- name: Deploy {{ service_name }}
|
|
vars:
|
|
svc: "{{ semaphoreui_svc }}"
|
|
env: "{{ semaphoreui_env }}"
|
|
compose: "{{ semaphoreui_compose }}"
|
|
block:
|
|
- name: Import prepare tasks for common service
|
|
ansible.builtin.include_tasks: "{{ tasks_dir }}/prepare-common-service.yml"
|
|
|
|
- name: Create config
|
|
ansible.builtin.copy:
|
|
dest: "{{ (service_path, 'config.json') | path_join }}"
|
|
content: '{{ semaphoreui_config | to_nice_json }}'
|
|
mode: "0644"
|
|
notify: Restart service semaphoreui
|
|
|
|
- name: Import start tasks for common service
|
|
ansible.builtin.include_tasks: "{{ tasks_dir }}/start-common-service.yml"
|