aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2021-12-21 14:20:31 +0000
committerRomain Gonçalves <me@rgoncalves.se>2021-12-21 15:51:06 +0000
commit5da619fcd74405ca1c895c47d9249bddc2b6e36d (patch)
treead694ba780b3882a2de5ce4545c9f6dcab9ab304
parentc0f67d31ca1ea2c361e97b9f2d3643920f5176dd (diff)
downloadrules-5da619fcd74405ca1c895c47d9249bddc2b6e36d.tar.gz
bin: Add env wrapper for mitogen runtime
-rwxr-xr-xbin/env14
1 files changed, 14 insertions, 0 deletions
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
remember that computers suck.