This commit is contained in:
2024-10-08 06:41:47 +02:00
parent 1ef33c16af
commit 7300938372
103 changed files with 619 additions and 198 deletions

19
scripts/setup-remote.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/usr/bin/env bash
export ROOT="`dirname "$0"`/.."
MACHINE_NAME="$1"; shift
. $ROOT/scripts/with-env.sh
if [ -z "$MACHINE_NAME" ]; then
echo "Usage: $0 <machine-name>"
exit 1
fi
echo "Setting up $MACHINE_NAME"
ansible-playbook -i inventory.yml playbooks/setup.yml \
--connection=local \
--inventory "$MACHINE_NAME," \
--limit "$MACHINE_NAME" \
$@ \
--ask-become-pass