浏览代码

Ensure matrix_dynamic_dns_domain_configurations contains configurations

If `matrix_dynamic_dns_enabled`, we'd like to ensure there's at least
one configuration defined.

Related to #681 (Github Pull Request)
pull/681/head
Slavi Pantaleev 5 年前
父节点
当前提交
8782919d85
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. +6
    -0
      roles/matrix-dynamic-dns/tasks/validate_config.yml

+ 6
- 0
roles/matrix-dynamic-dns/tasks/validate_config.yml 查看文件

@@ -1,5 +1,11 @@
---

- name: Fail if no configurations specified
fail:
msg: >-
You need to define at least one configuration in `matrix_dynamic_dns_domain_configurations` for using matrix-dynamic-dns.
when: "matrix_dynamic_dns_domain_configurations|length == 0"

- name: Fail if required settings not defined in configuration blocks
fail:
msg: >-


正在加载...
取消
保存