ansible-infra/roles/nginx/tasks/main/01_validate_config_names.yaml
June 0e4df5b590
All checks were successful
/ Ansible Lint (push) Successful in 1m48s
nginx(role): make loop output manageable using loop_control label
2025-02-18 06:07:47 +01:00

9 lines
343 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 }}"
loop_control:
label: "{{ item.name }}"