19 lines
771 B
YAML

- name: "include role for {{domain}} to receive certificates and do the modification routines"
include_role:
name: nginx-https-get-cert-modify-all
- name: "copy nginx domain configuration to {{ configuration_destination }}"
template:
src: "{{ vhost_template_src }}"
dest: "{{ configuration_destination }}"
notify: restart nginx
- name: "set oauth2_proxy_application_id (Needed due to lazzy loading issue)"
set_fact:
oauth2_proxy_application_id: "{{ application_id }}"
when: "{{applications[application_id].get('features', {}).get('oauth2', False)}}"
- name: "include the docker-oauth2-proxy role {{domain}}"
include_role:
name: docker-oauth2-proxy
when: "{{applications[application_id].get('features', {}).get('oauth2', False)}}"