scripts v1
This commit is contained in:
19
ansible/deploy.sh
Executable file
19
ansible/deploy.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/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 $@
|
||||
Reference in New Issue
Block a user