diff --git a/playbook-template/bootstrap.sh b/playbook-template/bootstrap.sh index dfbe7b5a9661a246605b7ca046e0563d6ee8e04d..4dcf457e2065c8265c6cb9e5399675e8ecd0484d 100755 --- a/playbook-template/bootstrap.sh +++ b/playbook-template/bootstrap.sh @@ -8,7 +8,7 @@ echo ansible > requirements.python.txt if ! command -v virtualenv &>/dev/null; then echo "This command needs virtualenv to run." echo "Install it like this:" - printf "\tapt install python3-virtualenv\n" + printf "\tapt install python3-venv\n" printf "\tOR pip3 install --user virtualenv\n" printf "\texport PATH=\"~/.local/bin:\$PATH\"\n" exit 1 @@ -17,7 +17,7 @@ fi # if not in virtualenv if [[ "$VIRTUAL_ENV" == "" ]]; then # create virtualenv if not present - [[ ! -d .venv ]] && virtualenv .venv + [[ ! -d .venv ]] && python3 -m venv .venv source .venv/bin/activate pip install -r requirements.python.txt