Cristian Calin
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
12 additions and
7 deletions
contrib/mitogen/mitogen.yml
docs/mitogen.md
@ -5,8 +5,8 @@
- hosts : localhost
strategy : linear
vars:
mitogen_version : 0.3 .0rc1
mitogen_url : https://github.com/dw/mitogen/archive /v{{ mitogen_version }}.tar.gz
mitogen_version : 0.3 .2
mitogen_url : https://github.com/mitogen-hq/mitogen/archive/refs/tags /v{{ mitogen_version }}.tar.gz
ansible_connection : local
tasks:
- name : Create mitogen plugin dir
@ -38,7 +38,12 @@
- name : add strategy to ansible.cfg
ini_file:
path : ansible.cfg
section : defaults
option : strategy
value : mitogen_linear
mode : 0644
section : "{{ item.section | d('defaults') }}"
option : "{{ item.section }}"
value : "{{ item.value }}"
with_items:
- option : strategy
value : mitogen_linear
- option : strategy_plugins
value : plugins/mitogen/ansible_mitogen/plugins/strategy
@ -7,10 +7,10 @@
## Install
```ShellSession
ansible-playbook mitogen.yml
ansible-playbook contrib/mitogen/ mitogen.yml
```
Ensure to enable mitogen use by environment varialbles:
The above playbook sets the ansible `strategy` and `strategy_plugins` in `ansible.cfg` but you can also enable them if you use your own `ansible.cfg` by setting the environment varialbles:
```ShellSession
export ANSIBLE_STRATEGY=mitogen_linear