26 lines
850 B
YAML

---
- name: "include docker-central-database"
include_role:
name: docker-central-database
- name: "include role for {{application_id}} to receive certs & do modification routines"
include_role:
name: nginx-https-get-cert-modify-all
vars:
domain: "{{ item }}"
http_port: "{{ ports.localhost.http[application_id] }}"
loop:
- "{{ domains | get_domain('mailu') }}"
- "{{ domain }}"
- name: configure {{domains | get_domain(application_id)}}.conf
template:
src: roles/nginx-docker-reverse-proxy/templates/vhost/basic.conf.j2
dest: "{{nginx.directories.http.servers}}{{domains | get_domain(application_id)}}.conf"
notify: restart nginx
- name: "include tasks update-repository-with-files.yml"
include_tasks: update-repository-with-files.yml
vars:
detached_files:
- "docker-compose.yml"