Skip to content

Commit 46ea605

Browse files
Dennis WernerDennis Werner
authored andcommitted
Merge fix-pr-run branch from upstream
2 parents c7ce4ed + 084df32 commit 46ea605

File tree

4 files changed

+34
-30
lines changed

4 files changed

+34
-30
lines changed

.github/workflows/telegraf.yml

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -27,46 +27,50 @@ jobs:
2727
fail-fast: false
2828
matrix:
2929
molecule_distro:
30-
- container: rocky8
31-
image: geerlingguy/docker-rockylinux8-ansible
30+
# - container: rocky8
31+
# image: geerlingguy/docker-rockylinux8-ansible
3232
- container: rocky9
3333
image: geerlingguy/docker-rockylinux9-ansible
3434
- container: ubuntu2204
3535
image: geerlingguy/docker-ubuntu2204-ansible:latest
3636
- container: ubuntu2004
3737
image: geerlingguy/docker-ubuntu2004-ansible:latest
38-
- container: ubuntu1804
39-
image: geerlingguy/docker-ubuntu1804-ansible:latest
38+
# - container: ubuntu1804
39+
# image: geerlingguy/docker-ubuntu1804-ansible:latest
4040
- container: debian10
4141
image: geerlingguy/docker-debian10-ansible:latest
4242
- container: debian11
4343
image: geerlingguy/docker-debian11-ansible:latest
4444
steps:
4545
- name: Check out code
46-
uses: actions/checkout@v1
46+
uses: actions/checkout@v4
4747

4848
- name: Set up Python 3.11
49-
uses: actions/setup-python@v1
49+
uses: actions/setup-python@v5
5050
with:
5151
python-version: 3.11.13
5252

53-
- name: Install dependencies
54-
run: |
55-
python -m pip install --upgrade pip
56-
pip install -r requirements.txt
53+
54+
# - name: Install dependencies
55+
# run: |
56+
# python -m pip install --upgrade pip
57+
# pip install -r requirements.txt
58+
59+
- name: Install test dependencies.
60+
run: pip3 install ansible molecule molecule-plugins[docker] docker pytest testinfra
5761

5862
- name: Run role tests on empty systems in check-mode
59-
run: >-
60-
MY_MOLECULE_CONTAINER=${{ matrix.molecule_distro.container }}
61-
MY_MOLECULE_IMAGE=${{ matrix.molecule_distro.image }}
62-
MY_MOLECULE_GROUP=${{ matrix.molecule_distro.group }}
63-
MY_MOLECULE_DOCKER_COMMAND=${{ matrix.molecule_distro.command }}
64-
molecule test -s empty-checkmode
63+
env:
64+
MY_MOLECULE_CONTAINER: ${{ matrix.molecule_distro.container }}
65+
MY_MOLECULE_IMAGE: ${{ matrix.molecule_distro.image }}
66+
MY_MOLECULE_GROUP: ${{ matrix.molecule_distro.group }}
67+
MY_MOLECULE_DOCKER_COMMAND: ${{ matrix.molecule_distro.command }}
68+
run: molecule test -s empty-checkmode
6569

6670
- name: Run role tests
67-
run: >-
68-
MY_MOLECULE_CONTAINER=${{ matrix.molecule_distro.container }}
69-
MY_MOLECULE_IMAGE=${{ matrix.molecule_distro.image }}
70-
MY_MOLECULE_GROUP=${{ matrix.molecule_distro.group }}
71-
MY_MOLECULE_DOCKER_COMMAND=${{ matrix.molecule_distro.command }}
72-
molecule test
71+
env:
72+
MY_MOLECULE_CONTAINER: ${{ matrix.molecule_distro.container }}
73+
MY_MOLECULE_IMAGE: ${{ matrix.molecule_distro.image }}
74+
MY_MOLECULE_GROUP: ${{ matrix.molecule_distro.group }}
75+
MY_MOLECULE_DOCKER_COMMAND: ${{ matrix.molecule_distro.command }}
76+
run: molecule test

molecule/default/converge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
---
22
- hosts: telegraf
33
roles:
4-
- role: ansible-telegraf
4+
- role: ../../ansible-telegraf
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
---
22
- hosts: telegraf
33
roles:
4-
- role: ansible-telegraf
4+
- role: ../../../ansible-telegraf

requirements.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
ansible==9.7.0
2-
ansible-compat==24.10.0
3-
ansible-core==2.18.1
1+
ansible==11.2.0
2+
ansible-compat==25.1.2
3+
ansible-core==2.18.2
44
docker==7.1.0
5-
molecule==6.0.3
5+
molecule==25.2.0
66
molecule-docker==2.1.0
7-
molecule-plugins==23.5.3
7+
molecule-plugins==23.7.0
88
netaddr==1.3.0
9-
pytest==8.3.3
9+
pytest==8.3.4
1010
pytest-testinfra==10.1.1
1111
testinfra==6.0.0

0 commit comments

Comments
 (0)