From: Oleg Broytman Date: Mon, 25 Apr 2022 01:15:05 +0000 (+0300) Subject: Feat(debian/init-system): Start a shared connection with a password X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=6088a71867ea1bddea3cbfe8904f301d825dc497;p=ansible.git Feat(debian/init-system): Start a shared connection with a password --- 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 &&