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