-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Bump keepup, add prefixes to all script outputs
- Loading branch information
Showing
6 changed files
with
16 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
.idea | ||
override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
PREFIX="[Init]" | ||
|
||
if [ "$ANSIBLE" = "true" ]; then | ||
if [ "$ANSIBLE_PULL" = "true" ]; then | ||
echo "Pulling and running latest server config ansible playbook" | ||
echo "$PREFIX Pulling and running latest server config ansible playbook" | ||
|
||
ansible-pull -U "https://github.com/MineInAbyss/server-config.git" -d "/server-config" --checkout "${ANSIBLE_PULL_BRANCH:=master}" | ||
elif [ -f "/server-config/local.yml" ]; then | ||
echo "Running local server config ansible playbook" | ||
echo "$PREFIX Running local server config ansible playbook" | ||
|
||
ansible-playbook /server-config/local.yml --extra-vars "server_name=$SERVER_NAME dest=/data" | ||
fi | ||
else | ||
echo "ANSIBLE not set to 'true', not running playbook" | ||
echo "$PREFIX ANSIBLE not set to 'true', not running playbook" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters