Files
infrascripts/ansible/deploy.sh
2025-10-22 21:47:09 -05:00

19 lines
430 B
Bash
Executable File

#!/usr/bin/env bash
# Author: Landon Dyck
# This is a convenience wrapper around ansible-playbook using the python env. Can take any
# additional ansible-playbook parameters, such as tags. Use unlock.sh first for even more
# convenience.
# Usage: $ ./deploy.sh [additional params]
PATH=${PWD}/env/bin:${PATH}
set -ex
if [ -f .env ]; then
export $(cat .env | xargs)
fi
cd ansible/
time ansible-playbook main.yml --diff $@