]> git.phdru.name Git - ansible.git/blobdiff - playbooks/debian/init-system.sh
Feat: Rename `*.yml` to `*.yaml`
[ansible.git] / playbooks / debian / init-system.sh
index 2363c803ea412f30c6e0669ab37363b1eff5b5f6..3a3ef1b7bbabdbe4184d81f89e25c7a82e29ad46 100755 (executable)
@@ -8,10 +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" \
+ansible-playbook ../init-system.yaml "$@" -e hosts="$host" \
    --become-method=su -K &&
-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"