X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Fdebian%2Finit-system.sh;fp=playbooks%2Fdebian%2Finit-system.sh;h=ab4ba714777f89c2ba16a93778b2275f899e7b8a;hb=6088a71867ea1bddea3cbfe8904f301d825dc497;hp=3b5deef45d2794e67a973484dbb31c0a63c5637b;hpb=ddeafb772e497be951cc78e7a28bf3feb4d0ae96;p=ansible.git diff --git a/playbooks/debian/init-system.sh b/playbooks/debian/init-system.sh index 3b5deef..ab4ba71 100755 --- a/playbooks/debian/init-system.sh +++ b/playbooks/debian/init-system.sh @@ -9,10 +9,11 @@ host="$1" shift ssh root@$host exec adduser phd +# Passwordless access isn't configured yet; use `ssh` connection sharing. +ssh phd@$host exit && 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 ../init-system.yml "$@" -e hosts="$host" \ --become-method=su -K &&