2022-02-05 21:32:54 +01:00
|
|
|
---
|
2019-01-12 16:53:00 +01:00
|
|
|
|
2019-01-17 12:32:46 +01: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 12:32:46 +01:00
|
|
|
tags:
|
|
|
|
- setup-all
|
|
|
|
- setup-nginx-proxy
|
2022-11-25 15:02:51 +01:00
|
|
|
- install-all
|
|
|
|
- install-nginx-proxy
|
2019-01-17 12:32:46 +01:00
|
|
|
|
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 16:53:00 +01:00
|
|
|
tags:
|
|
|
|
- setup-all
|
|
|
|
- setup-nginx-proxy
|
|
|
|
- setup-ssl
|
2022-11-25 15:02:51 +01:00
|
|
|
- install-all
|
|
|
|
- install-nginx-proxy
|
|
|
|
- install-ssl
|
2019-01-12 16:53:00 +01:00
|
|
|
|
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 16:53:00 +01:00
|
|
|
tags:
|
|
|
|
- setup-all
|
|
|
|
- setup-nginx-proxy
|
2022-11-25 15:02:51 +01:00
|
|
|
- install-all
|
|
|
|
- install-nginx-proxy
|
2019-01-12 16:53:00 +01:00
|
|
|
|
2019-01-17 12:32:46 +01:00
|
|
|
- name: Mark matrix-nginx-proxy role as executed
|
|
|
|
tags:
|
2022-02-05 21:32:54 +01:00
|
|
|
- always
|
2023-03-07 16:28:10 +01:00
|
|
|
ansible.builtin.set_fact:
|
|
|
|
matrix_nginx_proxy_role_executed: true
|