From c40b43de019d43aba431f7dd9e3b9545702ec004 Mon Sep 17 00:00:00 2001 From: Cristian Calin <6627509+cristicalin@users.noreply.github.com> Date: Thu, 27 Jan 2022 18:36:59 +0200 Subject: [PATCH] [mitogent] update to 0.3.2 (#8470) --- mitogen.yml => contrib/mitogen/mitogen.yml | 15 ++++++++++----- docs/mitogen.md | 4 ++-- 2 files changed, 12 insertions(+), 7 deletions(-) rename mitogen.yml => contrib/mitogen/mitogen.yml (70%) diff --git a/mitogen.yml b/contrib/mitogen/mitogen.yml similarity index 70% rename from mitogen.yml rename to contrib/mitogen/mitogen.yml index b39075f13..20752d6ca 100644 --- a/mitogen.yml +++ b/contrib/mitogen/mitogen.yml @@ -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 diff --git a/docs/mitogen.md b/docs/mitogen.md index 8505845fb..422d220db 100644 --- a/docs/mitogen.md +++ b/docs/mitogen.md @@ -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