- name: "include role for {{domain}} to recieve 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:  "roles/nginx-docker-reverse-proxy/templates/domain.conf.j2" 
    dest: "{{configuration_destination}}"
  notify: restart nginx
  
- name: "include the docker-oauth2-proxy role {{domain}}"
  include_role:
    name: docker-oauth2-proxy
  when: final_oauth2_enabled | bool