X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Fdebian%2Finit-system.sh;h=3a3ef1b7bbabdbe4184d81f89e25c7a82e29ad46;hb=3c5ede3e8a061c1817c429a5332dcf7bc76ec415;hp=e72f3182ce15e61fdd4e8695e25391cddee6de79;hpb=0feb58457296582a1bfbb990096b09b62878a9f7;p=ansible.git diff --git a/playbooks/debian/init-system.sh b/playbooks/debian/init-system.sh index e72f318..3a3ef1b 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" \ +ansible-playbook ../init-system.yaml "$@" -e hosts="$host" \ --become-method=su -K && -ANSIBLE_ROLES_PATH=debian/roles ../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"