Add emgauwa service
This commit is contained in:
parent
777a26be98
commit
bb90cec341
7 changed files with 180 additions and 0 deletions
35
playbooks/roles/emgauwa/tasks/main.yml
Normal file
35
playbooks/roles/emgauwa/tasks/main.yml
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
---
|
||||
- name: Set common facts
|
||||
ansible.builtin.import_tasks: tasks/set-default-facts.yml
|
||||
|
||||
- name: Deploy {{ role_name }}
|
||||
vars:
|
||||
env: "{{ emgauwa_env }}"
|
||||
compose: "{{ emgauwa_compose }}"
|
||||
block:
|
||||
- name: Import prepare tasks for common service
|
||||
ansible.builtin.import_tasks: tasks/prepare-common-service.yml
|
||||
|
||||
- name: Copy the Caddyfile
|
||||
ansible.builtin.copy:
|
||||
src: Caddyfile
|
||||
dest: "{{ (service_path, 'Caddyfile') | path_join }}"
|
||||
mode: "0644"
|
||||
notify: Restart service {{ role_name }}
|
||||
|
||||
- name: Create core config
|
||||
ansible.builtin.copy:
|
||||
dest: "{{ (service_path, 'emgauwa-core.yml') | path_join }}"
|
||||
content: '{{ emgauwa_core_yml | to_nice_yaml }}'
|
||||
mode: "0644"
|
||||
notify: Restart service {{ role_name }}
|
||||
|
||||
- name: Create controller config
|
||||
ansible.builtin.copy:
|
||||
dest: "{{ (service_path, 'emgauwa-controller.yml') | path_join }}"
|
||||
content: '{{ emgauwa_controller_yml | to_nice_yaml }}'
|
||||
mode: "0644"
|
||||
notify: Restart service {{ role_name }}
|
||||
|
||||
- name: Import start tasks for common service
|
||||
ansible.builtin.import_tasks: tasks/start-common-service.yml
|
||||
Loading…
Add table
Add a link
Reference in a new issue