--- - name: Fail if required LiveKit Server settings are not defined ansible.builtin.fail: msg: > You need to define a required configuration setting (`{{ item.name }}`). when: "item.when | bool and vars[item.name] | length == 0" with_items: - {'name': 'livekit_server_hostname', when: true} - {'name': 'livekit_server_identifier', when: true} - {'name': 'livekit_server_uid', when: true} - {'name': 'livekit_server_gid', when: true}