mirror of
https://github.com/morten-olsen/configs.git
synced 2026-02-08 00:46:24 +01:00
cleanup
This commit is contained in:
@@ -11,7 +11,6 @@ fi
|
||||
|
||||
echo "Setting up $MACHINE_NAME"
|
||||
ansible-playbook -i inventory.yml playbooks/setup.yml \
|
||||
--connection=local \
|
||||
--extra-vars "ansible_python_interpreter=$(which python)" \
|
||||
--inventory "$MACHINE_NAME," \
|
||||
--limit "$MACHINE_NAME" \
|
||||
|
||||
19
scripts/setup-remote.sh
Executable file
19
scripts/setup-remote.sh
Executable 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
|
||||
|
||||
Reference in New Issue
Block a user