X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Fdebian%2Finit-system.sh;h=3a3ef1b7bbabdbe4184d81f89e25c7a82e29ad46;hb=3c5ede3e8a061c1817c429a5332dcf7bc76ec415;hp=9fae1958f892e1df32bd75723cda5e0bcf5281a6;hpb=e8637fa0c109b53cc0644014b69b40fa67cdf906;p=ansible.git diff --git a/playbooks/debian/init-system.sh b/playbooks/debian/init-system.sh index 9fae195..3a3ef1b 100755 --- a/playbooks/debian/init-system.sh +++ b/playbooks/debian/init-system.sh @@ -9,12 +9,13 @@ 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" \ +ansible-playbook ../init-system.yaml "$@" -e hosts="$host" \ --become-method=su -K && -../run-roles remove-systemd "$@" -e hosts="$host" && -exec ansible-playbook ../init-system2.yml "$@" -e hosts="$host" +../run-roles debian/remove-systemd "$@" -e hosts="$host" && +exec ansible-playbook ../init-system2.yaml "$@" -e hosts="$host"