From 5da619fcd74405ca1c895c47d9249bddc2b6e36d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Tue, 21 Dec 2021 14:20:31 +0000 Subject: bin: Add env wrapper for mitogen runtime --- bin/env | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 bin/env (limited to 'bin/env') diff --git a/bin/env b/bin/env new file mode 100755 index 0000000..3a63701 --- /dev/null +++ b/bin/env @@ -0,0 +1,14 @@ +#!/bin/sh + +set -x + +if [ "${POETRY_ACTIVE}" ]; then + + export ANSIBLE_STRATEGY_PLUGINS=$(find $VIRTUAL_ENV \ + -type d \ + -path "*lib/python3.*/ansible_mitogen/plugins/*" \ + -name "strategy") + export ANSIBLE_STRATEGY="mitogen_linear" +fi + +set +x -- cgit v1.2.3