Merge pull request #106 from gardar/ansible-2.15

minor: Add ansible 2.15 support.
fixes: #103
This commit is contained in:
gardar 2023-05-15 23:11:37 +00:00 committed by GitHub
commit cbdb1b8c27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 54 additions and 49 deletions

View file

@ -7,6 +7,7 @@ on:
- edited
- reopened
- synchronize
- labeled
workflow_dispatch:
env:
@ -38,6 +39,8 @@ jobs:
cmd: yq -o json -I=0 '.requires_ansible | split(",") | .[] |= sub("(.*?)(\d+\.\d+)(.*)"; "stable-${2}")' meta/runtime.yml
ansible-test-sanity:
if: |
!github.event.label
uses: ./.github/workflows/ansible-test-sanity.yml
needs:
- ansible-lint
@ -68,10 +71,11 @@ jobs:
since_last_remote_commit: "true"
- name: Discover role tests
if: steps.changed-roles.outputs.any_changed == 'true'
id: set-molecule-tests
run: |
echo tests="[`for role in ${{ steps.changed-roles.outputs.all_changed_and_modified_files }}; do
roles=${{ steps.changed-roles.outputs.all_changed_and_modified_files }}
roles+=${{ github.event.label.name }}
echo tests="[`for role in $roles; do
for test in $(find tests/integration/targets -maxdepth 1 -mindepth 1 -type d -iname "molecule-${role}-*" -printf "%f\n"); do
echo '{"test":\"'"${test}"'\","name":\"'"${test#*-}\"'"}';
done

View file

@ -1,3 +1,4 @@
---
ancestor: null
releases:
0.0.1:
@ -81,7 +82,7 @@ releases:
minor_changes:
- 'feat: Add mysqld_exporter role (https://github.com/prometheus-community/ansible/pull/45)'
trivial:
- Fixup version bumper job (https://github.com/prometheus-community/ansible/pull/67)
- 'fix version bumper job (https://github.com/prometheus-community/ansible/pull/67)'
- 'refactor: underscore variable prefix should be reserved... (https://github.com/prometheus-community/ansible/pull/65)'
release_date: '2023-03-14'
0.3.1:

View file

@ -1,2 +1,2 @@
---
requires_ansible: "~=2.9.0,~=2.10.0,~=2.11.0,~=2.12.0,~=2.13.0,~=2.14.0"
requires_ansible: "~=2.9.0,~=2.10.0,~=2.11.0,~=2.12.0,~=2.13.0,~=2.14.0,~=2.15.0"