#!/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 $@