]> git.phdru.name Git - ansible.git/blobdiff - playbooks/debian-init-system.sh
Feat(init-system): Install `fetchmail`
[ansible.git] / playbooks / debian-init-system.sh
index 8089e1d905b19da22b99d124a06a34a9da40cb2d..d53c6a55c38c50c2e84376515106770adfdcb3ae 100755 (executable)
@@ -1,6 +1,17 @@
 #! /bin/sh
 
+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.
-exec ansible-playbook debian-init-system.yml debian-init-user-phd.yml \
-   "$@" --become-method=su -Kv
+ansible-playbook debian/init-system.yml "$@" -e hosts="$host" \
+   --become-method=su -K &&
+exec ansible-playbook debian/init-system2.yml "$@" -e hosts="$host"