Skip to content

Commit

Permalink
Ansible 6 support
Browse files Browse the repository at this point in the history
  • Loading branch information
moreati committed Jul 4, 2022
1 parent ecdfeff commit 6eaeac4
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .ci/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,3 +202,6 @@ jobs:
Ans_310_5:
python.version: '3.10'
tox.env: py310-mode_ansible-ansible5
Ans_310_6:
python.version: '3.10'
tox.env: py310-mode_ansible-ansible6
2 changes: 1 addition & 1 deletion ansible_mitogen/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@


ANSIBLE_VERSION_MIN = (2, 10)
ANSIBLE_VERSION_MAX = (2, 12)
ANSIBLE_VERSION_MAX = (2, 13)

This comment has been minimized.

Copy link
@smarakdas314

smarakdas314 Jul 13, 2022

tried this commit on my mac, getting errors. After upgrading my formula from ansible 5.7.1 to 6.0.0 mitogen breakage :(

$ brew upgrade ansible

$ ansible --version
ansible [core 2.13.1]
config file = /Users/user/Documents/oxylabs/infrastructure/ansible/ansible.cfg
configured module search path = ['/Users/user/Documents/oxylabs/infrastructure/ansible/modules']
ansible python module location = /opt/homebrew/Cellar/ansible/6.0.0/libexec/lib/python3.10/site-packages/ansible

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: File "", line 1521, in load_module
server1 | FAILED! => {
"msg": "Unexpected failure during module execution.",
"stdout": ""
}

This comment has been minimized.

Copy link
@moreati

moreati Jul 14, 2022

Author Owner

That matches the CI build of the PR mitogen-hq#933

This comment has been minimized.

Copy link
@moreati

moreati Jul 14, 2022

Author Owner

That matches the CI build of the PR mitogen-hq#933

This comment has been minimized.

Copy link
@moreati

moreati Jul 14, 2022

Author Owner

That matches the CI build of the PR mitogen-hq#933

This comment has been minimized.

Copy link
@moreati

moreati Jul 14, 2022

Author Owner

That matches the CI build of the PR mitogen-hq#933


NEW_VERSION_MSG = (
"Your Ansible version (%s) is too recent. The most recent version\n"
Expand Down
2 changes: 1 addition & 1 deletion docs/ansible_detailed.rst
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ Noteworthy Differences
* Mitogen 0.2.x supports Ansible 2.3-2.9; with Python 2.6, 2.7, or 3.6.
Mitogen 0.3.1+ supports
- Ansible 2.10, 3, and 4; with Python 2.7, or 3.6-3.10
- Ansible 5; with Python 3.8-3.10
- Ansible 5 and 6; with Python 3.8-3.10
Verify your installation is running one of these versions by checking
``ansible --version`` output.

Expand Down
1 change: 1 addition & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ To avail of fixes in an unreleased version, please download a ZIP file

v0.3.4.dev0
-------------------
* :gh:issue:`929` Support Ansible 6 and ansible-core 2.13

* :gh:issue:`832` Fix runtime error when using the ansible.builtin.dnf module multiple times

Expand Down
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
# ansible == 3.* ansible-base ~= 2.10.0
# ansible == 4.* ansible-core ~= 2.11.0
# ansible == 5.* ansible-core ~= 2.12.0
# ansible == 6.* ansible-core ~= 2.13.0

# pip --no-python-version-warning
# pip --disable-pip-version-check
Expand All @@ -36,7 +37,7 @@
envlist =
init,
py{27,36}-mode_ansible-ansible{2.10,3,4},
py{310}-mode_ansible-ansible{2.10,3,4,5},
py{310}-mode_ansible-ansible{2.10,3,4,5,6},
py{27,36,310}-mode_mitogen-distro_centos{6,7,8},
py{27,36,310}-mode_mitogen-distro_debian{9,10,11},
py{27,36,310}-mode_mitogen-distro_ubuntu{1604,1804,2004},
Expand All @@ -61,6 +62,7 @@ deps =
ansible3: ansible==3.4.0
ansible4: ansible==4.10.0
ansible5: ansible==5.8.0
ansible6: ansible==6.0.0
install_command =
python -m pip --no-python-version-warning --disable-pip-version-check install {opts} {packages}
commands_pre =
Expand Down

0 comments on commit 6eaeac4

Please sign in to comment.