---
- name: "include docker-central-database"
  include_role: 
    name: docker-central-database
  
- name: "include create-domains.yml for peertube"
  include_tasks: create-domains.yml
  loop: "{{ domains.peertube }}"
  loop_control:
    loop_var: domain
  vars:
    http: "{{ ports.localhost.http[application_id] }}"

- include_tasks: "{{ playbook_dir }}/roles/docker-compose/tasks/create-files.yml"

- name: "Install and activate auth-openid-connect plugin if OIDC is enabled"
  include_tasks: enable-oidc.yml
  when: applications | is_feature_enabled('oidc',application_id)

- name: "Deinstall and disable auth-openid-connect plugin if OIDC is enabled"
  include_tasks: disable-oidc.yml
  when: applications | is_feature_enabled('oidc',application_id)