mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-02 21:41:07 +02:00
20 lines
715 B
YAML
20 lines
715 B
YAML
---
|
|
- name: "include role for {{application_id}} to receive certs & do modification routines"
|
|
include_role:
|
|
name: srv-web-7-6-composer
|
|
vars:
|
|
domain: "{{ domains | get_domain(application_id) }}"
|
|
http_port: "{{ ports.localhost.http[application_id] }}"
|
|
when: run_once_web_svc_cdn is not defined
|
|
|
|
- name: "generate {{domains | get_domain(application_id)}}.conf"
|
|
template:
|
|
src: "nginx.conf.j2"
|
|
dest: "{{ nginx.directories.http.servers }}{{ domains | get_domain(application_id) }}.conf"
|
|
notify: restart openresty
|
|
when: run_once_web_svc_cdn is not defined
|
|
|
|
- name: run the web svc cdn tasks once
|
|
set_fact:
|
|
run_once_web_svc_cdn: true
|
|
when: run_once_web_svc_cdn is not defined |