mirror of
https://github.com/jcwimer/kubernetes-ansible
synced 2026-03-24 16:44:44 +00:00
Initial Commit
This commit is contained in:
11
supporting-scripts/run-setup.sh
Normal file
11
supporting-scripts/run-setup.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
# cd to project directory
|
||||
script_dir="$(dirname $(readlink -f ${BASH_SOURCE[0]}))"
|
||||
project_dir="${script_dir}/../"
|
||||
private_key=${PRIVATE_KEY}
|
||||
|
||||
cd ${project_dir}
|
||||
|
||||
# Run
|
||||
pipenv install
|
||||
pipenv run ansible-playbook -u ${DEPLOY_USER} -i hosts --ssh-common-args="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" --private-key=${private_key} playbooks/site.yml
|
||||
Reference in New Issue
Block a user