summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
47138ce)
As the script asks for the root password
it can only initialize a single host.
+if [ -z "$1" ]; then
+ echo "Usage: $0 host" >&2
+ exit 1
+fi
+
+host="$1"
+shift
+
cd "`dirname \"$0\"`" &&
# Passwordless access isn't configured yet; use `ssh` connection sharing.
# `sudo` isn't configured yet too; use `su` and ask for root password.
cd "`dirname \"$0\"`" &&
# Passwordless access isn't configured yet; use `ssh` connection sharing.
# `sudo` isn't configured yet too; use `su` and ask for root password.
-ansible-playbook debian/init-system.yml "$@" --become-method=su -K &&
-exec ansible-playbook debian/init-system2.yml "$@"
+ansible-playbook debian/init-system.yml "$@" -e hosts="$host" \
+ --become-method=su -K &&
+exec ansible-playbook debian/init-system2.yml "$@" -e hosts="$host"