diff --git a/.ansible-lint b/.ansible-lint index e412e9c..fa67b68 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -3,15 +3,18 @@ # Ansible managed # exclude_paths: - - ./meta/exception.yml - - ./meta/preferences.yml - - ./molecule/default/prepare.yml - - ./molecule/default/converge.yml - - ./molecule/default/verify.yml - - ./molecule/default/collections.yml - - ./.tox - - ./.cache + - meta/preferences.yml + - molecule/default/prepare.yml + - molecule/default/converge.yml + - molecule/default/verify.yml + - molecule/default/collections.yml + - .tox + - .cache + - .github + - requirements.yml -skip_list: # TODO: Check why this is failing - - no-changed-when - - fqcn-builtins +skip_list: + - yaml[truthy] + +enable_list: + - name[prefix] diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..5dafe2e --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,2 @@ +--- +github: buluma diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index f8b0654..01ce68e 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -28,3 +28,5 @@ Show at least the error, possible related output, maybe just all the output. - Control node OS: [e.g. Debian 9] (`cat /etc/os-release`) - Control node Ansible version: [e.g. 2.9.1] (`ansible --version`) - Managed node OS: [e.g. CentOS 7] (`cat /etc/os-release`) + +Please consider [sponsoring me](https://github.com/sponsors/buluma). diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index e0512b0..83e7a9f 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -15,3 +15,5 @@ Why is this feature required? ## Additional context Add any other context about the feature request here. + +Please consider [sponsoring me](https://github.com/sponsors/buluma). diff --git a/.github/settings.yml b/.github/settings.yml index 6a84cda..a528c83 100644 --- a/.github/settings.yml +++ b/.github/settings.yml @@ -5,4 +5,4 @@ repository: description: Install and configure ara api on your system. homepage: https://buluma.github.io/ - topics: ansible, records, ara, reports, cloud, development, monitoring, reporting, ansible, molecule, tox, playbook, hacktoberfest + topics: ansible, records, ara, reports, cloud, development, monitoring, reporting, ansible, molecule, tox, playbook diff --git a/.github/workflows/galaxy.yml b/.github/workflows/galaxy.yml index b5cce5c..38eca22 100644 --- a/.github/workflows/galaxy.yml +++ b/.github/workflows/galaxy.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-20.04 steps: - name: galaxy - uses: buluma/galaxy-action@v1.0.3 + # uses: buluma/galaxy-action@v6.25.22 # TODO: rebuild action + uses: robertdebock/galaxy-action@1.2.1 with: galaxy_api_key: ${{ secrets.galaxy_api_key }} - git_branch: master diff --git a/.github/workflows/molecule.yml b/.github/workflows/molecule.yml index fdfdfe1..876a580 100644 --- a/.github/workflows/molecule.yml +++ b/.github/workflows/molecule.yml @@ -6,11 +6,19 @@ name: Ansible Molecule on: - # Schedule updates (once daily) + push: + branches: + - master + - main + - testing + paths-ignore: + - '**/README.md' + - '**/CHANGELOG.md' + tags_ignore: + - '*' + pull_request: schedule: - - cron: '1 1 * * *' - workflow_dispatch: - push: {branches: ["master", "main"]} + - cron: '1 1 1 * *' concurrency: group: ${{ github.ref }}-${{ github.workflow }} @@ -21,13 +29,9 @@ jobs: runs-on: ubuntu-20.04 steps: - name: checkout - uses: actions/checkout@v3 - with: - path: "${{ github.repository }}" - - name: molecule - uses: buluma/molecule-action@v4.0.7 - with: - command: lint + uses: actions/checkout@v4 + - name: ansible-lint + uses: ansible-community/ansible-lint-action@main test: needs: - lint @@ -38,23 +42,23 @@ jobs: config: - image: "enterpriselinux" tag: "7" + - image: "enterpriselinux" + tag: "8" - image: "enterpriselinux" tag: "latest" - image: "debian-systemd" tag: "latest" - image: "debian-systemd" - tag: "bookworm" - - image: "fedora-systemd" - tag: "34" + tag: "bullseye" - image: "fedora-systemd" - tag: "35" + tag: "37" - image: "fedora-systemd" tag: "latest" - image: "docker-ubuntu-systemd" tag: "bionic" steps: - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: "${{ github.repository }}" - name: disable apparmor for mysql @@ -62,7 +66,7 @@ jobs: - name: parse apparmor for mysql run: sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld - name: molecule - uses: buluma/molecule-action@v4.0.7 + uses: buluma/molecule-action@v5.0.9 with: image: ${{ matrix.config.image }} tag: ${{ matrix.config.tag }} diff --git a/.github/workflows/requirements2png.yml b/.github/workflows/requirements2png.yml index 604a171..a510c4d 100644 --- a/.github/workflows/requirements2png.yml +++ b/.github/workflows/requirements2png.yml @@ -4,26 +4,23 @@ # on: - workflow_dispatch: - push: {branches: ["master", "main"]} - - -concurrency: - group: ${{ github.ref }}-${{ github.workflow }} - cancel-in-progress: true - + push: + paths: + - '.github/workflows/requirements2png.yml' name: Ansible Graphviz jobs: build: runs-on: ubuntu-20.04 + permissions: + contents: write steps: - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: ${{ github.repository }} - name: create png - uses: buluma/graphviz-action@1.0.0 + uses: buluma/graphviz-action@1.0.0 # TODO: Update action - name: Commit files run: | cd ${{ github.repository }} @@ -34,7 +31,6 @@ jobs: - name: save to png branch uses: ad-m/github-push-action@master with: - github_token: ${{ secrets.GITHUB_TOKEN }} directory: ${{ github.repository }} force: true branch: png diff --git a/.github/workflows/todo.yml b/.github/workflows/todo.yml index c6347d7..7837717 100644 --- a/.github/workflows/todo.yml +++ b/.github/workflows/todo.yml @@ -8,18 +8,13 @@ name: "TODO 2 Issue" on: push: -concurrency: - group: ${{ github.ref }}-${{ github.workflow }} - cancel-in-progress: true - jobs: build: runs-on: "ubuntu-20.04" steps: - - uses: "actions/checkout@v3" + - uses: "actions/checkout@master" - name: "TODO to Issue" - uses: "buluma/todo-to-issue-action@v1.0.1" + uses: "alstr/todo-to-issue-action@v2.3" # TODO: Update buluma/todo-to-issue-action@v1.0.1 @buluma id: "todo" with: - USER_PROJECTS: buluma/Ansible/To do - PROJECTS_SECRET: ${{ secrets.PROJECTS_SECRET }} + TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0a40de0..21dda55 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,110 +1,36 @@ --- -image: "buluma/github-action-molecule:4.0.7" - -services: - - docker:dind +image: "buluma/github-action-molecule:5.0.9" variables: - DOCKER_HOST: "tcp://docker:2375" PY_COLORS: 1 molecule: - stage: build - allow_failure: true script: - - image=${image} tag=${tag} molecule test - retry: 1 - parallel: - matrix: - - image: "enterpriselinux" - tag: "7" - - image: "enterpriselinux" - tag: "latest" - - image: "debian-systemd" - tag: "latest" - - image: "debian-systemd" - tag: "bookworm" - - image: "fedora-systemd" - tag: "34" - - image: "fedora-systemd" - tag: "35" - - image: "fedora-systemd" - tag: "latest" - - image: "docker-ubuntu-systemd" - tag: "bionic" - -testing: - stage: test - needs: [] - script: - - image=${image} tag=${tag} molecule test + - molecule test rules: - - if: $CI_COMMIT_REF_NAME == "testing" - retry: 1 + - if: $CI_COMMIT_REF_NAME == "master" + allow_failure: true parallel: matrix: - image: "enterpriselinux" tag: "7" + - image: "enterpriselinux" + tag: "8" - image: "enterpriselinux" tag: "latest" - image: "debian-systemd" tag: "latest" - image: "debian-systemd" - tag: "bookworm" + tag: "bullseye" - image: "fedora-systemd" - tag: "34" - - image: "fedora-systemd" - tag: "35" + tag: "37" - image: "fedora-systemd" tag: "latest" - image: "docker-ubuntu-systemd" tag: "bionic" galaxy: - stage: deploy - needs: [] - script: - - ansible-galaxy role info buluma.ara_api - -role_testing: - stage: test - needs: [] script: - - image=${image} tag=${tag} ansible-galaxy install buluma.ara_api - retry: 1 - parallel: - matrix: - - image: "enterpriselinux" - tag: "7" - - image: "enterpriselinux" - tag: "latest" - - image: "debian-systemd" - tag: "latest" - - image: "debian-systemd" - tag: "bookworm" - - image: "fedora-systemd" - tag: "34" - - image: "fedora-systemd" - tag: "35" - - image: "fedora-systemd" - tag: "latest" - - image: "docker-ubuntu-systemd" - tag: "bionic" - -release_job: - stage: .post - needs: [molecule] - image: registry.gitlab.com/gitlab-org/release-cli:latest + - ansible-galaxy role import --api-key ${GALAXY_API_KEY} buluma ${CI_PROJECT_NAME} rules: - - if: $CI_COMMIT_TAG - script: - - echo "Running the release job." - release: - tag_name: $CI_COMMIT_TAG - name: 'Release $CI_COMMIT_TAG' - description: 'Release created using the release-cli.' - artifacts: - name: "$CI_JOB_STAGE-$CI_COMMIT_REF_NAME" - paths: - - / - expire_in: 1 day + - if: $CI_COMMIT_TAG != null diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 17af3f2..6f3deda 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,24 +1,24 @@ --- repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.2.0 + rev: v4.4.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - id: check-added-large-files - repo: https://github.com/adrienverge/yamllint - rev: v1.26.3 + rev: v1.32.0 hooks: - id: yamllint args: [-c=.yamllint] - repo: https://github.com/buluma/pre-commit - rev: v1.0.2 + rev: v1.0.3 hooks: - id: ansible_role_find_unused_variable - id: ansible_role_find_empty_files - id: ansible_role_find_empty_directories - - id: ansible_role_fix_readability - id: ansible_role_find_undefined_handlers - id: ansible_role_find_unquoted_values + - id: ansible_role_find_horizontal_when diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b28e6d4..4eeedf1 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -72,3 +72,5 @@ In the comment-box, you can [refer to the issue number](https://help.github.com/ Now I'll get a message that you've added some code. Thank you, really. CI starts to test your changes. You can follow the progress on GitHub. + +Please consider [sponsoring me](https://github.com/sponsors/buluma). diff --git a/LICENSE b/LICENSE index 69ff874..5bb4321 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ Apache License - Version 2.0, 05 2022 + Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION @@ -187,7 +187,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2022 Michael Buluma (me@buluma.me.ke) + Copyright 2023 Shadow Walker (bulumaknight@gmail.com) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/README.md b/README.md index 786ec23..136519f 100644 --- a/README.md +++ b/README.md @@ -2,13 +2,14 @@ Install and configure ara api on your system. -|GitHub|GitLab|Quality|Downloads|Version|Issues|Pull Requests| -|------|------|-------|---------|-------|------|-------------| -|[![github](https://github.com/buluma/ansible-role-ara_api/workflows/Ansible%20Molecule/badge.svg)](https://github.com/buluma/ansible-role-ara_api/actions)|[![gitlab](https://gitlab.com/buluma/ansible-role-ara_api/badges/master/pipeline.svg)](https://gitlab.com/buluma/ansible-role-ara_api)|[![quality](https://img.shields.io/ansible/quality/58814)](https://galaxy.ansible.com/buluma/ara_api)|[![downloads](https://img.shields.io/ansible/role/d/58814)](https://galaxy.ansible.com/buluma/ara_api)|[![Version](https://img.shields.io/github/release/buluma/ansible-role-ara_api.svg)](https://github.com/buluma/ansible-role-ara_api/releases/)|[![Issues](https://img.shields.io/github/issues/buluma/ansible-role-ara_api.svg)](https://github.com/buluma/ansible-role-ara_api/issues/)|[![PullRequests](https://img.shields.io/github/issues-pr-closed-raw/buluma/ansible-role-ara_api.svg)](https://github.com/buluma/ansible-role-ara_api/pulls/)| +|GitHub|GitLab|Downloads|Version|Issues|Pull Requests| +|------|------|-------|-------|------|-------------| +|[![github](https://github.com/buluma/ansible-role-ara_api/workflows/Ansible%20Molecule/badge.svg)](https://github.com/buluma/ansible-role-ara_api/actions)|[![gitlab](https://gitlab.com/shadowwalker/ansible-role-ara_api/badges/master/pipeline.svg)](https://gitlab.com/shadowwalker/ansible-role-ara_api)|[![downloads](https://img.shields.io/ansible/role/d/4644)](https://galaxy.ansible.com/buluma/ara_api)|[![Version](https://img.shields.io/github/release/buluma/ansible-role-ara_api.svg)](https://github.com/buluma/ansible-role-ara_api/releases/)|[![Issues](https://img.shields.io/github/issues/buluma/ansible-role-ara_api.svg)](https://github.com/buluma/ansible-role-ara_api/issues/)|[![PullRequests](https://img.shields.io/github/issues-pr-closed-raw/buluma/ansible-role-ara_api.svg)](https://github.com/buluma/ansible-role-ara_api/pulls/)| ## [Example Playbook](#example-playbook) -This example is taken from `molecule/default/converge.yml` and is tested on each push, pull request and release. +This example is taken from [`molecule/default/converge.yml`](https://github.com/buluma/ansible-role-ara_api/blob/master/molecule/default/converge.yml) and is tested on each push, pull request and release. + ```yaml --- - name: Converge @@ -21,7 +22,8 @@ This example is taken from `molecule/default/converge.yml` and is tested on each ara_api_secure_logging: false ``` -The machine needs to be prepared. In CI this is done using `molecule/default/prepare.yml`: +The machine needs to be prepared. In CI this is done using [`molecule/default/prepare.yml`](https://github.com/buluma/ansible-role-ara_api/blob/master/molecule/default/prepare.yml): + ```yaml --- - name: Prepare @@ -35,21 +37,22 @@ The machine needs to be prepared. In CI this is done using `molecule/default/pre - role: buluma.setuptools ``` +Also see a [full explanation and example](https://buluma.github.io/how-to-use-these-roles.html) on how to use these roles. ## [Requirements](#requirements) -- pip packages listed in [requirements.txt](https://github.com/buluma/ansible-role-ara_api/blob/main/requirements.txt). +- pip packages listed in [requirements.txt](https://github.com/buluma/ansible-role-ara_api/blob/master/requirements.txt). -## [Status of used roles](#status-of-requirements) +## [State of used roles](#state-of-used-roles) The following roles are used to prepare a system. You can prepare your system in another way. | Requirement | GitHub | GitLab | |-------------|--------|--------| -|[buluma.bootstrap](https://galaxy.ansible.com/buluma/bootstrap)|[![Build Status GitHub](https://github.com/buluma/ansible-role-bootstrap/workflows/Ansible%20Molecule/badge.svg)](https://github.com/buluma/ansible-role-bootstrap/actions)|[![Build Status GitLab ](https://gitlab.com/buluma/ansible-role-bootstrap/badges/main/pipeline.svg)](https://gitlab.com/buluma/ansible-role-bootstrap)| -|[buluma.git](https://galaxy.ansible.com/buluma/git)|[![Build Status GitHub](https://github.com/buluma/ansible-role-git/workflows/Ansible%20Molecule/badge.svg)](https://github.com/buluma/ansible-role-git/actions)|[![Build Status GitLab ](https://gitlab.com/buluma/ansible-role-git/badges/master/pipeline.svg)](https://gitlab.com/buluma/ansible-role-git)| -|[buluma.setuptools](https://galaxy.ansible.com/buluma/setuptools)|[![Build Status GitHub](https://github.com/buluma/ansible-role-setuptools/workflows/Ansible%20Molecule/badge.svg)](https://github.com/buluma/ansible-role-setuptools/actions)|[![Build Status GitLab ](https://gitlab.com/buluma/ansible-role-setuptools/badges/master/pipeline.svg)](https://gitlab.com/buluma/ansible-role-setuptools)| +|[buluma.bootstrap](https://galaxy.ansible.com/buluma/bootstrap)|[![Build Status GitHub](https://github.com/buluma/ansible-role-bootstrap/workflows/Ansible%20Molecule/badge.svg)](https://github.com/buluma/ansible-role-bootstrap/actions)|[![Build Status GitLab](https://gitlab.com/shadowwalker/ansible-role-bootstrap/badges/master/pipeline.svg)](https://gitlab.com/shadowwalker/ansible-role-bootstrap)| +|[buluma.git](https://galaxy.ansible.com/buluma/git)|[![Build Status GitHub](https://github.com/buluma/ansible-role-git/workflows/Ansible%20Molecule/badge.svg)](https://github.com/buluma/ansible-role-git/actions)|[![Build Status GitLab](https://gitlab.com/shadowwalker/ansible-role-git/badges/master/pipeline.svg)](https://gitlab.com/shadowwalker/ansible-role-git)| +|[buluma.setuptools](https://galaxy.ansible.com/buluma/setuptools)|[![Build Status GitHub](https://github.com/buluma/ansible-role-setuptools/workflows/Ansible%20Molecule/badge.svg)](https://github.com/buluma/ansible-role-setuptools/actions)|[![Build Status GitLab](https://gitlab.com/shadowwalker/ansible-role-setuptools/badges/master/pipeline.svg)](https://gitlab.com/shadowwalker/ansible-role-setuptools)| ## [Context](#context) @@ -65,10 +68,10 @@ This role has been tested on these [container images](https://hub.docker.com/u/b |container|tags| |---------|----| -|el|all| -|debian|all| -|fedora|all| -|ubuntu|bionic| +|[EL](https://hub.docker.com/repository/docker/buluma/enterpriselinux/general)|all| +|[Debian](https://hub.docker.com/repository/docker/buluma/debian/general)|all| +|[Fedora](https://hub.docker.com/repository/docker/buluma/fedora/general)|all| +|[Ubuntu](https://hub.docker.com/repository/docker/buluma/ubuntu/general)|bionic| The minimum version of Ansible required is 2.10, tests have been done to: @@ -76,18 +79,6 @@ The minimum version of Ansible required is 2.10, tests have been done to: - The current version. - The development version. -## [Exceptions](#exceptions) - -Some roles can't run on a specific distribution or version. Here are some exceptions. - -| variation | reason | -|---------------------------|------------------------| -| alpine | Could not find a version that satisfies the requirement Django>=2.1.5 | -| centos:7 | No matching distribution found for Django>=2.1.5 | -| amazonlinux:1 | No package matching 'python3-pip' | -| amazonlinux | No module named pkg_resources | - - If you find issues, please register them in [GitHub](https://github.com/buluma/ansible-role-ara_api/issues) ## [Changelog](#changelog) @@ -96,8 +87,14 @@ If you find issues, please register them in [GitHub](https://github.com/buluma/a ## [License](#license) -Apache-2.0 +[Apache-2.0](https://github.com/buluma/ansible-role-ara_api/blob/master/LICENSE). ## [Author Information](#author-information) [Michael Buluma](https://buluma.github.io/) + +Please consider [sponsoring me](https://github.com/sponsors/buluma). + +### [Special Thanks](#special-thanks) + +Template inspired by [Robert de Bock](https://github.com/robertdebock) diff --git a/SECURITY.md b/SECURITY.md index 1b53e07..e219c6a 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -4,15 +4,13 @@ This software implements other software, it's not very likely that this software ## [Supported Versions](#supported-versions) -The current major version is supported. For example if the current version is 3.4.1: +These version of [ansible](https://pypi.org/project/ansible/) are supported: | Version | Supported | | ------- | ------------------ | -| 3.4.1 | :white_check_mark: | -| 3.4.x | :white_check_mark: | -| 3.x.x | :white_check_mark: | -| 2.0.0 | :x: | -| 1.0.0 | :x: | +| 7 | :white_check_mark: | +| 6 | :white_check_mark: | +| 5 | :white_check_mark: | ## [Reporting a Vulnerability](#reporting-a-vulnarability) @@ -21,3 +19,5 @@ Please [open an issue](https://github.com/buluma/ansible-role-ara_api/issues) de Tell them where to go, how often they can expect to get an update on a reported vulnerability, what to expect if the vulnerability is accepted or declined, etc. + +Please consider [sponsoring me](https://github.com/sponsors/buluma). diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml index da3a05b..8eda6eb 100644 --- a/molecule/default/molecule.yml +++ b/molecule/default/molecule.yml @@ -14,23 +14,15 @@ lint: | driver: name: docker platforms: - - name: "araapi-${image:-docker-centos7-ansible}-${tag:-latest}${TOX_ENVNAME}" - image: "${namespace:-buluma}/${image:-docker-centos7-ansible}:${tag:-latest}" + - name: "araapi-${image:-fedora}-${tag:-latest}${TOX_ENVNAME}" + image: "${namespace:-buluma}/${image:-fedora}:${tag:-latest}" command: /sbin/init volumes: - - /sys/fs/cgroup:/sys/fs/cgroup:ro + - /sys/fs/cgroup:/sys/fs/cgroup:rw + cgroupns_mode: host privileged: yes pre_build_image: yes - tty: true - environment: - container: docker provisioner: name: ansible - config_options: - defaults: - interpreter_python: auto_legacy_silent - callback_whitelist: profile_tasks - ssh_connection: - pipelining: true verifier: name: ansible diff --git a/requirements.txt b/requirements.txt index b0bf89c..09b3a84 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,11 +1,8 @@ -# These role have been tested with these PIP component. -# To install the required version yourself, use a command as: -# `python -m pip --user install -r requirements.txt` -# See the pip requirements file documentation for details: -# https://pip.pypa.io/en/stable/user_guide/#requirements-files -# -# Tests run on the previous and current (latest) version of Ansible. -ansible>=2.10 -# Some Jinja2 filters are used that are available in the newer releases. -jinja2>=2.11.2 -jmespath +# Pinning ansible-compat version due to [bug](https://github.com/ansible-community/molecule/issues/3903) +ansible-compat == 3.0.2 +molecule == 5.* +molecule-plugins[docker] == 23.* +ansible-lint == 6.* +paramiko == 3.* +# Pinning requests version due to [bug](https://github.com/docker/docker-py/issues/3113) +requests == 2.28.1 diff --git a/tox.ini b/tox.ini index 88f8545..699c9eb 100644 --- a/tox.ini +++ b/tox.ini @@ -2,18 +2,17 @@ # Ansible managed # [tox] -minversion = 3.21.4 -envlist = py{310}-ansible-{4,5} +minversion = 4.2.4 +envlist = py3-ansible{6,7,8} skipsdist = true [testenv] deps = - 4: ansible == 4.* - 5: ansible == 5.* - molecule[docker] - docker == 5.* - ansible-lint == 5.* + -rrequirements.txt + ansible6: ansible == 6.* + ansible7: ansible == 7.* + ansible8: ansible == 8.* commands = molecule test setenv = TOX_ENVNAME={envname} @@ -21,4 +20,8 @@ setenv = ANSIBLE_FORCE_COLOR=1 ANSIBLE_ROLES_PATH=../ -passenv = namespace image tag DOCKER_HOST +passenv = + namespace + image + tag + DOCKER_HOST