X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Fdebian%2Finit-system.sh;h=ab4ba714777f89c2ba16a93778b2275f899e7b8a;hb=6088a71867ea1bddea3cbfe8904f301d825dc497;hp=07a8ff76bf5434b09b4fa9757bfae4ef3100d715;hpb=f7e665139a974b34b7f0694e3fbe68a92c7d14a5;p=ansible.git diff --git a/playbooks/debian/init-system.sh b/playbooks/debian/init-system.sh index 07a8ff7..ab4ba71 100755 --- a/playbooks/debian/init-system.sh +++ b/playbooks/debian/init-system.sh @@ -8,13 +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\"`" && -ANSIBLE_ROLES_PATH=roles:../roles && -export ANSIBLE_ROLES_PATH && -# 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 && -ansible-playbook remove-systemd.yml "$@" -e hosts="$host" && +../run-roles debian/remove-systemd "$@" -e hosts="$host" && exec ansible-playbook ../init-system2.yml "$@" -e hosts="$host"