def METHOD_NAME(ee_enabled, tmp_path: Path, monkeypatch: pytest.MonkeyPatch):
    """Confirm a invalid ansible.cfg raises errors using configurator.
    :param ee_enabled: Indicate if EE support is enabled
    :param tmp_path: The path to a test temporary directory
    :param monkeypatch: The monkeypatch fixture
    """
    cfg_path = tmp_path / "ansible.cfg"
    with cfg_path.open(mode="w") as fh:
        fh.write(ANSIBLE_CFG_INVALID)
    monkeypatch.chdir(tmp_path)
    application_configuration = deepcopy(NavigatorConfiguration)
    application_configuration.internals.initializing = True
    configurator = Configurator(
        params=["--ee", str(ee_enabled)],
        application_configuration=application_configuration,
    )
    _messages, exit_messages = configurator.configure()
    assert application_configuration.internals.ansible_configuration.contents is Constants.NONE
    assert application_configuration.internals.ansible_configuration.path is Constants.NONE
    assert application_configuration.internals.ansible_configuration.text is Constants.NONE
    assert "12345" in exit_messages[3].message