ansible-infra/roles/nginx/tasks/main/01_validate_config_names.yaml

10 lines
343 B
YAML
Raw Normal View History

- name: Ensure that the given configuration names are valid
ansible.builtin.fail:
msg: "You used one of the reserved configuration names: '{{ item.name }}'."
when: item.name == "tls"
or item.name == "redirect"
or item.name == "logging"
loop: "{{ nginx__configurations }}"
loop_control:
label: "{{ item.name }}"