ansible-playbook-static-sit.../roles/static-server/tasks/validate_config.yml

9 lines
238 B
YAML
Raw Permalink Normal View History

2023-11-10 13:21:47 +00:00
---
- name: Fail if required static_site_server settings not defined
ansible.builtin.fail:
msg: >
You need to define a required configuration setting (`{{ item }}`).
when: "vars[item] == ''"
with_items:
- static_sites