]> git.phdru.name Git - ansible.git/blobdiff - playbooks/debian/init-system.sh
Fix(playbooks/debian): Fix path to the roles
[ansible.git] / playbooks / debian / init-system.sh
index 07a8ff76bf5434b09b4fa9757bfae4ef3100d715..3b5deef45d2794e67a973484dbb31c0a63c5637b 100755 (executable)
@@ -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 &&
-ansible-playbook remove-systemd.yml "$@" -e hosts="$host" &&
+../run-roles debian/remove-systemd "$@" -e hosts="$host" &&
 exec ansible-playbook ../init-system2.yml "$@" -e hosts="$host"