X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Fdebian%2Finit-system.sh;h=3b5deef45d2794e67a973484dbb31c0a63c5637b;hb=6f18068c9e75ed3d0a3dac95db9513f8a89e082f;hp=7b157f5d4792aad0199a1a19125556984d1f4b27;hpb=9a1252307f058984219663af448cd0da351ee11b;p=ansible.git diff --git a/playbooks/debian/init-system.sh b/playbooks/debian/init-system.sh index 7b157f5..3b5deef 100755 --- a/playbooks/debian/init-system.sh +++ b/playbooks/debian/init-system.sh @@ -8,13 +8,13 @@ fi host="$1" shift +ssh root@$host exec adduser phd + 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 && -../run-roles debian/remove-systemd.yml "$@" -e hosts="$host" && +../run-roles debian/remove-systemd "$@" -e hosts="$host" && exec ansible-playbook ../init-system2.yml "$@" -e hosts="$host"