Skip to content

Commit cca651d

Browse files
committed
ansible_mitogen: Ansible 9 (ansible-core 2.16) support
1 parent 45c42d3 commit cca651d

File tree

5 files changed

+17
-8
lines changed

5 files changed

+17
-8
lines changed

.ci/azure-pipelines.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ jobs:
3434

3535
Loc_27_210:
3636
tox.env: py27-mode_localhost-ansible2.10
37-
Loc_312_8:
37+
Loc_312_9:
3838
python.version: '3.12'
39-
tox.env: py312-mode_localhost-ansible8
39+
tox.env: py312-mode_localhost-ansible9
4040

4141
Van_27_210:
4242
tox.env: py27-mode_localhost-ansible2.10-strategy_linear
43-
Van_312_8:
43+
Van_312_9:
4444
python.version: '3.12'
45-
tox.env: py312-mode_localhost-ansible8-strategy_linear
45+
tox.env: py312-mode_localhost-ansible9-strategy_linear
4646

4747
- job: Linux
4848
pool:
@@ -160,3 +160,6 @@ jobs:
160160
Ans_312_8:
161161
python.version: '3.12'
162162
tox.env: py312-mode_ansible-ansible8
163+
Ans_312_9:
164+
python.version: '3.12'
165+
tox.env: py312-mode_ansible-ansible9

ansible_mitogen/loaders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949

5050

5151
ANSIBLE_VERSION_MIN = (2, 10)
52-
ANSIBLE_VERSION_MAX = (2, 15)
52+
ANSIBLE_VERSION_MAX = (2, 16)
5353

5454
NEW_VERSION_MSG = (
5555
"Your Ansible version (%s) is too recent. The most recent version\n"

docs/ansible_detailed.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ Noteworthy Differences
165165
+-----------------+-----------------+
166166
| 8 | 3.9 - 3.12 |
167167
+-----------------+-----------------+
168+
| 9 | 3.10 - 3.12 |
169+
+-----------------+-----------------+
168170

169171
Verify your installation is running one of these versions by checking
170172
``ansible --version`` output.

docs/changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Unreleased
2323

2424
* :gh:issue:`1021` Support for Ansible 8 (ansible-core 2.15)
2525
* tests: Replace uses of ``include:`` & ``import:``, unsupported in Ansible 9
26+
* :gh:issue:`1053` Support for Ansible 9 (ansible-core 2.16)
2627

2728

2829
v0.3.6 (2024-04-04)

tox.ini

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# 2.5 <= 3.7.1 <= 1.4.22 <= 1.3.1 <= 2.1.3 <= 2.8.7 <= 1.6.1 <= 1.9.1
1212
# 2.6 <= 2.6.20 <= 2.12 <= 4.5.4 <= 1.6.11 <= 2.10.3 <= 9.0.3 <= 5.9.0 <= 3.2.5 <= 2.9.1 <= 15.2.0
1313
# 2.7 <= 2.11 <= 5.5 <= 1.11.29 <= 2.11.3 <= 20 <= 4.6.11 <= 3.28 <= 20.15²
14-
# 3.5 <= 2.11 <= 2.13 <= 5.5 <= 2.2.28 <= 2.11.3 <= 20 <= 5.9.5 <= 6.1.0 <= 3.28 <= 20.15²
14+
# 3.5 <= 2.11 <= 2.15 <= 5.5 <= 2.2.28 <= 2.11.3 <= 20 <= 5.9.5 <= 6.1.0 <= 3.28 <= 20.15²
1515
# 3.6 <= 2.11 <= 6.2 <= 3.2.20 <= 3.0.3 <= 21 <= 7.0.1 <= 3.28 <= 20.17²
1616
# 3.7 <= 2.12 <= 7.2.7 <= 3.2.20 <= 7.4.4 <= 4.8.0
1717
# 3.8 <= 2.12
@@ -57,7 +57,7 @@ envlist =
5757
init,
5858
py{27,36}-mode_ansible-ansible{2.10,3,4},
5959
py{311}-mode_ansible-ansible{2.10,3,4,5},
60-
py{312}-mode_ansible-ansible{6,7,8},
60+
py{312}-mode_ansible-ansible{6,7,8,9},
6161
py{27,36,312}-mode_mitogen-distro_centos{6,7,8},
6262
py{27,36,312}-mode_mitogen-distro_debian{9,10,11},
6363
py{27,36,312}-mode_mitogen-distro_ubuntu{1604,1804,2004},
@@ -85,6 +85,7 @@ deps =
8585
ansible6: ansible~=6.0
8686
ansible7: ansible~=7.0
8787
ansible8: ansible~=8.0
88+
ansible9: ansible~=9.0
8889
install_command =
8990
python -m pip --no-python-version-warning --disable-pip-version-check install {opts} {packages}
9091
commands_pre =
@@ -120,10 +121,12 @@ setenv =
120121
distro_ubuntu1804: DISTRO=ubuntu1804
121122
distro_ubuntu2004: DISTRO=ubuntu2004
122123
# Note the plural, only applicable to MODE=ansible
123-
# Ansible >= 6 (ansible-core >= 2.13) require Python 2.7 or >= 3.5 on targets
124+
# Ansible 6 - 8 (ansible-core 2.13 - 2.15) require Python 2.7 or >= 3.5 on targets
124125
ansible6: DISTROS=centos7 centos8 debian9 debian10 debian11 ubuntu1604 ubuntu1804 ubuntu2004
125126
ansible7: DISTROS=centos7 centos8 debian9 debian10 debian11 ubuntu1604 ubuntu1804 ubuntu2004
126127
ansible8: DISTROS=centos7 centos8 debian9 debian10 debian11 ubuntu1604 ubuntu1804 ubuntu2004
128+
# Ansible >= 9 (ansible-core >= 2.16) require Python 2.7 or >= 3.6 on targets
129+
ansible9: DISTROS=centos7 centos8 debian9 debian10 debian11 ubuntu1804 ubuntu2004
127130
distros_centos: DISTROS=centos6 centos7 centos8
128131
distros_centos5: DISTROS=centos5
129132
distros_centos6: DISTROS=centos6

0 commit comments

Comments
 (0)