From 1352eeb3e8ad79d02bfce999a1e55044346e8b2e Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Tue, 24 May 2022 20:07:52 -0700 Subject: [PATCH] Fix venv detection for ansible cluster target This fixes the installation of the consul python library --- nomad/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nomad/Makefile b/nomad/Makefile index 095eb9a..dbeea94 100644 --- a/nomad/Makefile +++ b/nomad/Makefile @@ -61,7 +61,7 @@ venv/bin/ansible: .PHONY: ansible-cluster ansible-cluster: venv/bin/ansible ./venv/bin/ansible-galaxy install -p roles -r roles/requirements.yml - ./venv/bin/ansible-playbook -K -vv \ + env VIRTUAL_ENV=/Users/ifij/workspace/iamthefij/orchestration-tests/nomad/venv ./venv/bin/ansible-playbook -K -vv \ -e "@vault-keys.json" \ -i ansible_hosts.yml -M ./roles ./setup-cluster.yml