Skip to content

Commit

Permalink
fix minor typo of playbook name
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonLovesDoggo committed Jun 28, 2024
1 parent 6224dc8 commit 57427fc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions automation/new_droplet.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash
set -e # Exit on error
cd "$(dirname "$0")"
cd "$(cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )"

[ `whoami` = root ] || { sudo "$0" "$@"; exit $?; } # enforce root as the ansible ssh key is installed under root

. ../dmoj/scripts/utils/notify
Expand Down Expand Up @@ -60,7 +61,7 @@ echo "SSH is available!"

# Run the Ansible playbook once SSH is up
echo "Running Ansible playbook..."
fetch_inventory | ansible-playbook -i /dev/stdin playbooks/initalize_worker.yml --extra-vars "droplet_name=$1 ansible_host=$droplet_priv_ipv4 public_ipv4=$droplet_pub_ipv4 ansible_user=root"
fetch_inventory | ansible-playbook -i /dev/stdin ./playbooks/initialize_worker.yml --extra-vars "droplet_name=$1 ansible_host=$droplet_priv_ipv4 public_ipv4=$droplet_pub_ipv4 ansible_user=root"


notify "Droplet $1 is provisioned and configured!"
Expand Down

0 comments on commit 57427fc

Please sign in to comment.