2022-02-05 22:32:54 +02:00
|
|
|
---
|
2022-07-18 10:22:05 +02:00
|
|
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/init.yml"
|
2019-01-12 17:53:00 +02:00
|
|
|
tags:
|
|
|
|
- always
|
|
|
|
|
2019-01-17 13:32:46 +02:00
|
|
|
# Always validating the configuration, even if `matrix_nginx_proxy: false`.
|
|
|
|
# This role performs actions even if the role is disabled, so we need
|
|
|
|
# to ensure there's a valid configuration in any case.
|
2022-07-18 10:22:05 +02:00
|
|
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
|
|
|
when: run_setup | bool
|
2019-01-17 13:32:46 +02:00
|
|
|
tags:
|
|
|
|
- setup-all
|
|
|
|
- setup-nginx-proxy
|
|
|
|
|
2022-07-18 10:22:05 +02:00
|
|
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/ssl/main.yml"
|
|
|
|
when: run_setup | bool
|
2019-01-12 17:53:00 +02:00
|
|
|
tags:
|
|
|
|
- setup-all
|
|
|
|
- setup-nginx-proxy
|
|
|
|
- setup-ssl
|
|
|
|
|
2022-07-18 10:22:05 +02:00
|
|
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_nginx_proxy.yml"
|
|
|
|
when: run_setup | bool
|
2019-01-12 17:53:00 +02:00
|
|
|
tags:
|
|
|
|
- setup-all
|
|
|
|
- setup-nginx-proxy
|
|
|
|
|
2022-07-18 10:22:05 +02:00
|
|
|
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/self_check_well_known.yml"
|
2019-01-12 17:53:00 +02:00
|
|
|
delegate_to: 127.0.0.1
|
|
|
|
become: false
|
2022-07-18 10:22:05 +02:00
|
|
|
when: run_self_check | bool
|
2019-01-12 17:53:00 +02:00
|
|
|
tags:
|
2019-01-17 13:32:46 +02:00
|
|
|
- self-check
|
|
|
|
|
|
|
|
- name: Mark matrix-nginx-proxy role as executed
|
2022-07-18 09:39:08 +02:00
|
|
|
ansible.builtin.set_fact:
|
2019-01-17 13:32:46 +02:00
|
|
|
matrix_nginx_proxy_role_executed: true
|
|
|
|
tags:
|
2022-02-05 22:32:54 +02:00
|
|
|
- always
|