# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) # SPDX-License-Identifier: GPL-3.0-or-later # SPDX-FileCopyrightText: 2025 Felix Fontein [collection_sources] "community.general" = "git+https://github.com/ansible-collections/community.general.git,main" "community.internal_test_tools" = "git+https://github.com/ansible-collections/community.internal_test_tools.git,main" "community.library_inventory_filtering_v1" = "git+https://github.com/ansible-collections/community.library_inventory_filtering.git,stable-1" [collection_sources_per_ansible.'2.15'] # community.crypto's main branch needs ansible-core >= 2.17 "community.crypto" = "git+https://github.com/ansible-collections/community.crypto.git,stable-2" # community.general's main branch needs ansible-core >= 2.16 "community.general" = "git+https://github.com/ansible-collections/community.general.git,stable-10" [collection_sources_per_ansible.'2.16'] # community.crypto's main branch needs ansible-core >= 2.17 "community.crypto" = "git+https://github.com/ansible-collections/community.crypto.git,stable-2" [sessions] [sessions.lint] run_isort = false run_black = false run_flake8 = false run_pylint = false run_yamllint = true yamllint_config = ".yamllint" yamllint_config_plugins = ".yamllint-docs" yamllint_config_plugins_examples = ".yamllint-examples" run_mypy = false [sessions.docs_check] validate_collection_refs="all" codeblocks_restrict_types = [ "ansible-output", "console", "yaml", "yaml+jinja", ] codeblocks_restrict_type_exact_case = true codeblocks_allow_without_type = false codeblocks_allow_literal_blocks = false [sessions.license_check] [sessions.extra_checks] run_no_unwanted_files = true no_unwanted_files_module_extensions = [".py"] no_unwanted_files_yaml_extensions = [".yml"] run_action_groups = true run_no_trailing_whitespace = true run_avoid_characters = true [[sessions.extra_checks.action_groups_config]] name = "docker" pattern = "^.*$" exclusions = [ "current_container_facts", "docker_context_info", ] doc_fragment = "community.docker.attributes.actiongroup_docker" [[sessions.extra_checks.avoid_character_group]] name = "tab" regex = "\\x09" skip_directories = [ "tests/images/", ] [sessions.build_import_check] run_galaxy_importer = true [[sessions.ee_check.execution_environments]] name = "devel-ubi-9" description = "ansible-core devel @ RHEL UBI 9" test_playbooks = ["tests/ee/all.yml"] config.images.base_image.name = "docker.io/redhat/ubi9:latest" config.dependencies.ansible_core.package_pip = "https://github.com/ansible/ansible/archive/devel.tar.gz" config.dependencies.ansible_runner.package_pip = "ansible-runner" config.dependencies.python_interpreter.package_system = "python3.11 python3.11-pip python3.11-wheel python3.11-cryptography" config.dependencies.python_interpreter.python_path = "/usr/bin/python3.11" runtime_environment = {"ANSIBLE_PRIVATE_ROLE_VARS" = "true"} runtime_container_options = [ # Mount Docker socket into the container so we can talk to Docker outside the container "-v", "/var/run/docker.sock:/var/run/docker.sock", # Need to be root so we can access /var/run/docker.sock, which usually isn't accessible by the user, # but only by the group the user is in (but that group membership isn't there in the container) "--user", "0", ] [[sessions.ee_check.execution_environments]] name = "2.15-rocky-9" description = "ansible-core 2.15 @ Rocky Linux 9" test_playbooks = ["tests/ee/all.yml"] config.images.base_image.name = "quay.io/rockylinux/rockylinux:9" config.dependencies.ansible_core.package_pip = "https://github.com/ansible/ansible/archive/stable-2.15.tar.gz" config.dependencies.ansible_runner.package_pip = "ansible-runner" runtime_environment = {"ANSIBLE_PRIVATE_ROLE_VARS" = "true"} runtime_container_options = [ # Mount Docker socket into the container so we can talk to Docker outside the container "-v", "/var/run/docker.sock:/var/run/docker.sock", # Need to be root so we can access /var/run/docker.sock, which usually isn't accessible by the user, # but only by the group the user is in (but that group membership isn't there in the container) "--user", "0", ]