# 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" [vcs] vcs = "git" development_branch = "main" stable_branches = [ "stable-*" ] [sessions] [sessions.lint] run_isort = true isort_config = "tests/nox-config-isort.cfg" run_black = false run_flake8 = true flake8_config = "tests/nox-config-flake8.ini" run_pylint = false run_yamllint = true yamllint_config = ".yamllint" yamllint_config_plugins = ".yamllint-docs" yamllint_config_plugins_examples = ".yamllint-examples" yamllint_config_extra_docs = ".yamllint-extra-docs" run_mypy = false [sessions.docs_check] validate_collection_refs="all" [sessions.license_check] run_reuse = true [sessions.extra_checks] run_no_unwanted_files = true no_unwanted_files_module_extensions = [".py"] no_unwanted_files_yaml_extensions = [".yml"] run_action_groups = true [[sessions.extra_checks.action_groups_config]] name = "acme" pattern = "^acme_.*$" exclusions = [ "acme_ari_info", # does not support ACME account "acme_certificate_renewal_info", # does not support ACME account "acme_challenge_cert_helper", # does not support (and need) any common parameters ] doc_fragment = "community.crypto.attributes.actiongroup_acme" [sessions.build_import_check] run_galaxy_importer = true # [sessions.ansible_lint] [[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.12 python3.12-pip python3.12-wheel python3.12-cryptography" config.dependencies.python_interpreter.python_path = "/usr/bin/python3.12" runtime_environment = {"ANSIBLE_PRIVATE_ROLE_VARS" = "true"} # For some reason ansible-builder will not install EPEL dependencies on RHEL runtime_extra_vars = { "has_no_pyopenssl" = "true" } [[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" config.additional_build_steps.prepend_base = [ "RUN dnf install -y epel-release", ] runtime_environment = {"ANSIBLE_PRIVATE_ROLE_VARS" = "true"} # For some reason ansible-builder will not install EPEL dependencies on Rocky Linux runtime_extra_vars = { "has_no_pyopenssl" = "true" } [[sessions.ee_check.execution_environments]] name = "2.14-centos-stream-9" description = "ansible-core 2.14 @ CentOS Stream 9" test_playbooks = ["tests/ee/all.yml"] config.images.base_image.name = "quay.io/centos/centos:stream9" config.dependencies.ansible_core.package_pip = "https://github.com/ansible/ansible/archive/stable-2.14.tar.gz" config.dependencies.ansible_runner.package_pip = "ansible-runner" config.additional_build_steps.prepend_base = [ "RUN dnf install -y epel-release epel-next-release", ] runtime_environment = {"ANSIBLE_PRIVATE_ROLE_VARS" = "true"} # For some reason, PyOpenSSL is **broken** on CentOS Stream 9 / EPEL runtime_extra_vars = { "has_no_pyopenssl" = "true" } [[sessions.ee_check.execution_environments]] name = "2.13-ubi-8" description = "ansible-core 2.13 @ RHEL UBI 8" test_playbooks = ["tests/ee/all.yml"] config.images.base_image.name = "docker.io/redhat/ubi8:latest" config.dependencies.ansible_core.package_pip = "https://github.com/ansible/ansible/archive/stable-2.13.tar.gz" config.dependencies.ansible_runner.package_pip = "ansible-runner" config.dependencies.python_interpreter.package_system = "python39 python39-pip python39-wheel python39-cryptography" runtime_environment = {"ANSIBLE_PRIVATE_ROLE_VARS" = "true"} # We don't have PyOpenSSL for Python 3.9 runtime_extra_vars = { "has_no_pyopenssl" = "true" }