Skip to content

Commit 86b1fb0

Browse files
authored
Merge pull request #883 from Rosa-Luxemburgstiftung-Berlin/pr-ansible2.12
support for ansible 2.12
2 parents a564d8a + f1fde91 commit 86b1fb0

File tree

28 files changed

+175
-149
lines changed

28 files changed

+175
-149
lines changed

.ci/azure-pipelines.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,3 +276,6 @@ jobs:
276276
Ans_39_4:
277277
python.version: '3.9'
278278
tox.env: py39-mode_ansible-ansible4
279+
Ans_39_5:
280+
python.version: '3.9'
281+
tox.env: py39-mode_ansible-ansible5

ansible_mitogen/loaders.py

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

4646

4747
ANSIBLE_VERSION_MIN = (2, 10)
48-
ANSIBLE_VERSION_MAX = (2, 11)
48+
ANSIBLE_VERSION_MAX = (2, 12)
4949

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

docs/ansible_detailed.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,9 @@ Noteworthy Differences
146146
----------------------
147147

148148
* Mitogen 0.2.x supports Ansible 2.3-2.9; with Python 2.6, 2.7, or 3.6.
149-
Mitogen 0.3.1+ supports Ansible 2.10, 3, and 4; with Python 2.7, or 3.6-3.9.
149+
Mitogen 0.3.1+ supports
150+
- Ansible 2.10, 3, and 4; with Python 2.7, or 3.6-3.9
151+
- Ansible 5; with Python 3.8-3.9
150152
Verify your installation is running one of these versions by checking
151153
``ansible --version`` output.
152154

docs/changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ To avail of fixes in an unreleased version, please download a ZIP file
2121
v0.3.1.dev0 (unreleased)
2222
------------------------
2323

24+
* :gh:issue:`874` Support for Ansible 5 (ansible-core 2.12)
2425
* :gh:issue:`774` Fix bootstrap failures on macOS 11.x and 12.x, involving Python 2.7 wrapper
2526
* :gh:issue:`834` Support for Ansible 3 and 4 (ansible-core 2.11)
2627
* :gh:issue:`869` Continuous Integration tests are now run with Tox

tests/ansible/all.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
- include: setup/all.yml
1+
- import_playbook: setup/all.yml
22
tags: setup
3-
- include: regression/all.yml
3+
- import_playbook: regression/all.yml
44
tags: regression
5-
- include: integration/all.yml
5+
- import_playbook: integration/all.yml
66
tags: integration
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
- include: copy.yml
2-
- include: fixup_perms2__copy.yml
3-
- include: low_level_execute_command.yml
4-
- include: make_tmp_path.yml
5-
- include: make_tmp_path__double.yml
6-
- include: remote_expand_user.yml
7-
- include: remote_file_exists.yml
8-
- include: remove_tmp_path.yml
9-
- include: synchronize.yml
10-
- include: transfer_data.yml
1+
- import_playbook: copy.yml
2+
- import_playbook: fixup_perms2__copy.yml
3+
- import_playbook: low_level_execute_command.yml
4+
- import_playbook: make_tmp_path.yml
5+
- import_playbook: make_tmp_path__double.yml
6+
- import_playbook: remote_expand_user.yml
7+
- import_playbook: remote_file_exists.yml
8+
- import_playbook: remove_tmp_path.yml
9+
- import_playbook: synchronize.yml
10+
- import_playbook: transfer_data.yml

tests/ansible/integration/all.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,39 +3,39 @@
33
# This playbook imports all tests that are known to work at present.
44
#
55

6-
- include: action/all.yml
6+
- import_playbook: action/all.yml
77
tags: action
8-
- include: async/all.yml
8+
- import_playbook: async/all.yml
99
tags: async
10-
- include: become/all.yml
10+
- import_playbook: become/all.yml
1111
tags: become
12-
- include: connection/all.yml
12+
- import_playbook: connection/all.yml
1313
tags: connection
14-
- include: connection_delegation/all.yml
14+
- import_playbook: connection_delegation/all.yml
1515
tags: connection_delegation
16-
- include: connection_loader/all.yml
16+
- import_playbook: connection_loader/all.yml
1717
tags: connection_loader
18-
- include: context_service/all.yml
18+
- import_playbook: context_service/all.yml
1919
tags: context_service
20-
- include: glibc_caches/all.yml
20+
- import_playbook: glibc_caches/all.yml
2121
tags: glibc_caches
22-
- include: interpreter_discovery/all.yml
22+
- import_playbook: interpreter_discovery/all.yml
2323
tags: interpreter_discovery
24-
- include: local/all.yml
24+
- import_playbook: local/all.yml
2525
tags: local
26-
- include: module_utils/all.yml
26+
- import_playbook: module_utils/all.yml
2727
tags: module_utils
28-
- include: playbook_semantics/all.yml
28+
- import_playbook: playbook_semantics/all.yml
2929
tags: playbook_semantics
30-
- include: process/all.yml
30+
- import_playbook: process/all.yml
3131
tags: process
32-
- include: runner/all.yml
32+
- import_playbook: runner/all.yml
3333
tags: runner
34-
- include: ssh/all.yml
34+
- import_playbook: ssh/all.yml
3535
tags: ssh
36-
- include: strategy/all.yml
36+
- import_playbook: strategy/all.yml
3737
tags: strategy
38-
- include: stub_connections/all.yml
38+
- import_playbook: stub_connections/all.yml
3939
tags: stub_connections
40-
- include: transport_config/all.yml
40+
- import_playbook: transport_config/all.yml
4141
tags: transport_config
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
- include: multiple_items_loop.yml
2-
- include: result_binary_producing_json.yml
3-
- include: result_binary_producing_junk.yml
4-
- include: result_shell_echo_hi.yml
5-
- include: runner_new_process.yml
6-
- include: runner_one_job.yml
7-
- include: runner_timeout_then_polling.yml
8-
- include: runner_two_simultaneous_jobs.yml
9-
- include: runner_with_polling_and_timeout.yml
1+
- import_playbook: multiple_items_loop.yml
2+
- import_playbook: result_binary_producing_json.yml
3+
- import_playbook: result_binary_producing_junk.yml
4+
- import_playbook: result_shell_echo_hi.yml
5+
- import_playbook: runner_new_process.yml
6+
- import_playbook: runner_one_job.yml
7+
- import_playbook: runner_timeout_then_polling.yml
8+
- import_playbook: runner_two_simultaneous_jobs.yml
9+
- import_playbook: runner_with_polling_and_timeout.yml
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

2-
- include: su_password.yml
3-
- include: sudo_flags_failure.yml
4-
- include: sudo_nonexistent.yml
5-
- include: sudo_nopassword.yml
6-
- include: sudo_password.yml
7-
- include: sudo_requiretty.yml
2+
- import_playbook: su_password.yml
3+
- import_playbook: sudo_flags_failure.yml
4+
- import_playbook: sudo_nonexistent.yml
5+
- import_playbook: sudo_nopassword.yml
6+
- import_playbook: sudo_password.yml
7+
- import_playbook: sudo_requiretty.yml
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22

3-
- include: become_same_user.yml
4-
- include: disconnect_during_module.yml
5-
- include: disconnect_resets_connection.yml
6-
- include: exec_command.yml
7-
- include: home_dir.yml
8-
- include: put_large_file.yml
9-
- include: put_small_file.yml
10-
- include: reset.yml
11-
- include: reset_become.yml
3+
- import_playbook: become_same_user.yml
4+
- import_playbook: disconnect_during_module.yml
5+
- import_playbook: disconnect_resets_connection.yml
6+
- import_playbook: exec_command.yml
7+
- import_playbook: home_dir.yml
8+
- import_playbook: put_large_file.yml
9+
- import_playbook: put_small_file.yml
10+
- import_playbook: reset.yml
11+
- import_playbook: reset_become.yml

0 commit comments

Comments
 (0)