[mitogent] update to 0.3.2 (#8470)

This commit is contained in:
Cristian Calin 2022-01-27 18:36:59 +02:00 committed by GitHub
parent b0eb5650da
commit c40b43de01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 7 deletions

View file

@ -5,8 +5,8 @@
- hosts: localhost - hosts: localhost
strategy: linear strategy: linear
vars: vars:
mitogen_version: 0.3.0rc1 mitogen_version: 0.3.2
mitogen_url: https://github.com/dw/mitogen/archive/v{{ mitogen_version }}.tar.gz mitogen_url: https://github.com/mitogen-hq/mitogen/archive/refs/tags/v{{ mitogen_version }}.tar.gz
ansible_connection: local ansible_connection: local
tasks: tasks:
- name: Create mitogen plugin dir - name: Create mitogen plugin dir
@ -38,7 +38,12 @@
- name: add strategy to ansible.cfg - name: add strategy to ansible.cfg
ini_file: ini_file:
path: ansible.cfg path: ansible.cfg
section: defaults
option: strategy
value: mitogen_linear
mode: 0644 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

View file

@ -7,10 +7,10 @@
## Install ## Install
```ShellSession ```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 ```ShellSession
export ANSIBLE_STRATEGY=mitogen_linear export ANSIBLE_STRATEGY=mitogen_linear