From 6088a71867ea1bddea3cbfe8904f301d825dc497 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 25 Apr 2022 04:15:05 +0300 Subject: [PATCH] Feat(debian/init-system): Start a shared connection with a password --- playbooks/debian/init-system.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 && -- 2.39.5