diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2021-12-21 14:20:31 +0000 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2021-12-21 15:51:06 +0000 |
commit | 5da619fcd74405ca1c895c47d9249bddc2b6e36d (patch) | |
tree | ad694ba780b3882a2de5ce4545c9f6dcab9ab304 | |
parent | c0f67d31ca1ea2c361e97b9f2d3643920f5176dd (diff) | |
download | rules-5da619fcd74405ca1c895c47d9249bddc2b6e36d.tar.gz |
bin: Add env wrapper for mitogen runtime
-rwxr-xr-x | bin/env | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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 |