matrix-docker-ansible-deploy/roles/matrix-dynamic-dns/tasks/validate_config.yml
2020-11-07 17:53:13 -08:00

11 lines
404 B
YAML

---
- name: Fail if required settings not defined in configuration blocks
fail:
msg: >-
You need to define a required configuration setting (`{{ item }}`).
when: "'domain' not in configuration == '' or 'provider' not in configuration == '' or 'protocol' not in configuration == ''"
with_items: "{{ matrix_dynamic_dns_domain_configurations }}"
loop_control:
loop_var: configuration