##### SUMMARY

Move the remaining files needed by `ansible-test` into the `test/lib/ansible_test/` directory. This is required to implement: https://github.com/ansible/ansible/issues/59884

##### ISSUE TYPE

Feature Idea

##### COMPONENT NAME

ansible-test

"""
    :type args: EnvironmentConfig
    :type exclude: list[str]
    :type require: list[str]
    :type integration_targets: tuple[IntegrationTarget]
    """
    test_image = args.docker
    privileged = args.docker_privileged
    if isinstance(args, ShellConfig):
        use_httptester = args.httptester
    else:
        use_httptester = args.httptester and any('needs/httptester/' in target.aliases for target in integration_targets)
    if use_httptester:
        docker_pull(args, args.httptester)
    docker_pull(args, test_image)
    httptester_id = None
    test_id = None
    options = {
        '--docker': 1,
        '--docker-privileged': 0,
        '--docker-util': 1,
    }
    python_interpreter = get_python_interpreter(args, get_docker_completion(), args.docker_raw)
    install_root = '/root/ansible'
    if data_context().content.collection:
        content_root = os.path.join(install_root, data_context().content.collection.directory)
    else:
        content_root = install_root
    cmd = generate_command(args, python_interpreter, install_root, content_root, options, exclude, require)