1
1
# Collection for using Mitogen strategy
2
- This collection allows for using Mitogen strategy
3
- without the need to mess with paths. It also performs
4
- live patching for Mitogen restrictions in Ansible
5
- versions, making it possible to use Mitogen
6
- with the current Ansible version.
2
+
3
+ This collection allows to use [ Mitogen] ( https://github.com/mitogen-hq/mitogen )
4
+ strategy without the need to specify absolute path to the strategy file.
5
+
6
+ It also performs live patching for Mitogen restrictions in Ansible
7
+ versions, making it possible to use Mitogen with the current Ansible version.
7
8
8
9
Tested versions of ansible-core:
9
10
10
11
* 2.14
11
12
* 2.15
13
+ * 2.16
12
14
13
15
It patches ` ansible_mitogen ` code and unpatches it
14
16
back right after module import, so the original
15
17
files are kept intact.
16
18
17
19
## Install
18
- To use this collection, you need to install Mitogen. Up to a moment you've have
19
- to use master from mitogen repo (` pip install git+https://github.com/mitogen-hq/mitogen@master ` ),
20
- but there was a release of version 0.3.4 on 2023-07-03 which made it unnecessary.
21
-
22
- Mitogen installation:
20
+ To use this collection, you need to install Mitogen:
23
21
24
22
``` bash
25
23
pip install mitogen==0.3.4
@@ -50,9 +48,11 @@ You can set `ANSIBLE_STRATEGY` environment variable:
50
48
ANSIBLE_STRATEGY=serverscom.mitogen.mitogen_linear ansible-playbook ...
51
49
```
52
50
53
- ### strategy stanza
51
+ (This is my preferred way to use Mitogen).
54
52
55
- You can use ` strategy ` stanza in a play:
53
+ ### Strategy stanza
54
+
55
+ You can use a ` strategy ` stanza in a play:
56
56
57
57
```
58
58
- hosts: all
@@ -79,11 +79,11 @@ based on @ITD27M01 idea: https://github.com/mitogen-hq/mitogen/issues/961#issuec
79
79
# Disclamer
80
80
Servers.com is not responsible for any problems that may arise
81
81
during the use of this collection.
82
+
82
83
Mitogen is a separate project (https://github.com/mitogen-hq/mitogen )
83
84
that is well-known for speeding up Ansible in exchange for multiple
84
85
stability issues. Servers.com does not provide support for
85
86
Mitogen-specific issues and may only address issues related
86
87
to imports and/or patching of Mitogen.
87
88
88
89
If you want to make Mitogen better, please help upstream.
89
-
0 commit comments