]> git.phdru.name Git - ansible.git/commitdiff
Feat(debian/init-system): Start a shared connection with a password
authorOleg Broytman <phd@phdru.name>
Mon, 25 Apr 2022 01:15:05 +0000 (04:15 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 25 Apr 2022 01:15:05 +0000 (04:15 +0300)
playbooks/debian/init-system.sh

index 3b5deef45d2794e67a973484dbb31c0a63c5637b..ab4ba714777f89c2ba16a93778b2275f899e7b8a 100755 (executable)
@@ -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 &&