Skip to content

Commit b24455f

Browse files
authored
[chore][ansible] Upgrade versions used in testing (#6250)
* [chore][ansible] Upgrade versions used in testing * test using python3.13 * install setuptools to resolve: Cannot import 'setuptools.build_meta' * try workaround for sudo failures
1 parent d3fc24b commit b24455f

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

.github/workflows/ansible.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ jobs:
6161
matrix:
6262
ansible:
6363
# Testing only the versions currently supported per https://endoflife.date/ansible
64-
- ansible~=9.2.0
65-
- ansible~=8.7.0
64+
- ansible~=11.6.0
65+
- ansible~=10.7.0
6666
distro:
6767
- amazonlinux2023
68-
- centos8
68+
- centos9
6969
- debian11
7070
- debian12
7171
- ubuntu2004
@@ -90,12 +90,13 @@ jobs:
9090
- name: Set up Python 3.
9191
uses: actions/setup-python@v5
9292
with:
93-
python-version: '3.11'
93+
python-version: '3.13'
9494
cache: 'pip'
9595
cache-dependency-path: "${{ github.workspace }}/requirements.txt"
9696

9797
- name: Install test dependencies.
9898
run: |
99+
python -m pip install --upgrade setuptools
99100
# workaround for https://github.com/yaml/pyyaml/issues/724
100101
pip3 install 'wheel==0.40.0'
101102
pip3 install 'Cython<3.0' 'PyYaml~=5.0' --no-build-isolation
@@ -118,8 +119,8 @@ jobs:
118119
matrix:
119120
ansible:
120121
# Testing only the versions currently supported per https://endoflife.date/ansible
121-
- ansible~=9.2.0
122-
- ansible~=8.7.0
122+
- ansible~=11.6.0
123+
- ansible~=10.7.0
123124
distro:
124125
- "2016"
125126
- "2019"

deployments/ansible/molecule/config/vagrant.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ driver:
1111
platforms:
1212
- name: focal64
1313
box: ubuntu/focal64
14-
- name: centos8
15-
box: centos/8
14+
- name: centos9
15+
box: centos/stream9
1616
- name: bookworm64
1717
box: debian/bookworm64
1818
provisioner:

deployments/ansible/molecule/default/Dockerfile.j2

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,8 @@ RUN echo -e '[local]\nlocalhost ansible_connection=local' > /etc/ansible/hosts
4848
VOLUME [ "/sys/fs/cgroup" ]
4949
CMD ["/sbin/init"]
5050
{% endif %}
51+
52+
# Workaround for Ansible Molecule bug causing sudo actions to fail.
53+
# https://github.com/ansible/molecule/issues/4365
54+
# https://github.com/geerlingguy/docker-rockylinux9-ansible/issues/6#issuecomment-2805378491
55+
RUN chmod 0400 /etc/shadow

0 commit comments

Comments
 (0)