29 lines
820 B
YAML

---
# Docker Routines
- name: "include docker-compose role"
include_role:
name: docker-compose
- name: "pkgmgr install"
include_role:
name: pkgmgr-install
vars:
package_name: cymais-presentation
package_notify: docker compose up
- name: Get path of cymais-presentation using pkgmgr
command: pkgmgr path cymais-presentation
register: path_cymais_presentation_output
- name: Get path of cymais using pkgmgr
command: pkgmgr path cymais
register: path_cymais_output
- name: "include role nginx-domain-setup for {{application_id}}"
include_role:
name: nginx-domain-setup
vars:
domain: "{{ domains | get_domain(application_id) }}"
http_port: "{{ ports.localhost.http[application_id] }}"
- include_tasks: "{{ playbook_dir }}/roles/docker-compose/tasks/create-files.yml"