]> git.phdru.name Git - ansible.git/blobdiff - playbooks/debian/init-system.sh
Feat(playbooks/*/init-system.sh): Add user `phd`
[ansible.git] / playbooks / debian / init-system.sh
index c44eb832ea86036bfd22778fb1c458634db122b4..9fae1958f892e1df32bd75723cda5e0bcf5281a6 100755 (executable)
@@ -8,12 +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 &&
-exec ansible-playbook init-system2.yml "$@" -e hosts="$host"
+../run-roles remove-systemd "$@" -e hosts="$host" &&
+exec ansible-playbook ../init-system2.yml "$@" -e hosts="$host"