mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-11-10 20:57:41 +01:00
18 lines
526 B
YAML
18 lines
526 B
YAML
---
|
|
|
|
- name: Fail if required settings not defined
|
|
fail:
|
|
msg: >-
|
|
You need to define a required configuration setting (`{{ item }}`).
|
|
when: "vars[item] == ''"
|
|
with_items:
|
|
- "matrix_domain"
|
|
- "matrix_dynamic_dns_provider"
|
|
- "matrix_dynamic_dns_mode"
|
|
|
|
- name: Fail if dynamic dns mode is incorrect
|
|
fail:
|
|
msg: >-
|
|
matrix_dynamic_dns_mode needs to be set to 'daemon' or 'dhcp'
|
|
when: "matrix_dynamic_dns_enabled and matrix_dynamic_dns_mode != 'daemon' and matrix_dynamic_dns_mode != 'dhcp'"
|