diff --git a/hah-snapshot.nomad b/hah-snapshot.nomad index 0f09217..4ab13ee 100644 --- a/hah-snapshot.nomad +++ b/hah-snapshot.nomad @@ -23,7 +23,6 @@ job "hah-state-backup" { PATH=${HOME}/.local/bin:${PATH} source ${NOMAD_SECRETS_DIR}/env echo Nomad addr: ${NOMAD_ADDR} -ecoh # Generate Consul Snapshot curl -v \ -X GET \ @@ -46,8 +45,13 @@ curl -X GET \ https://api.github.com/repos/brucellino/personal-automation/contents/playbooks/backup-state.yml \ | jq -r .content \ | base64 -d > playbook.yml -pip install --user ansible boto3 botocore -ansible-playbook -c local -i localhost, playbook.yml +virtualenv local/execute +source local/execute/bin/activate +pip install ansible boto3 botocore +which ansible +which ansible-playbook +which python +INTERPRETER_PYTHON=local/execute/bin/python3 ansible-playbook -c local -i localhost, playbook.yml EOH destination = "local/start.sh" perms = "777"