ansible-infra/roles/nginx/tasks/main/01_validate_config_names.yaml
June eb8254bcaf
All checks were successful
/ Ansible Lint (push) Successful in 1m48s
/ Ansible Lint (pull_request) Successful in 2m26s
nginx(role): use better naming, wording and file structure
2025-02-18 04:07:07 +01:00

7 lines
298 B
YAML

- 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 }}"