X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Fdebian%2Finit-system.sh;h=ab4ba714777f89c2ba16a93778b2275f899e7b8a;hb=b1964888264b779853ae6a148a08dc4256ea8c2d;hp=2937b319fb760ffd5fede030386a048d20652a16;hpb=424c41462e9f4f38fdf666f2180342a8268a95c7;p=ansible.git diff --git a/playbooks/debian/init-system.sh b/playbooks/debian/init-system.sh index 2937b31..ab4ba71 100755 --- a/playbooks/debian/init-system.sh +++ b/playbooks/debian/init-system.sh @@ -8,11 +8,14 @@ fi 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 && -../run-roles remove-systemd "$@" -e hosts="$host" && +../run-roles debian/remove-systemd "$@" -e hosts="$host" && exec ansible-playbook ../init-system2.yml "$@" -e hosts="$host"