]> git.phdru.name Git - ansible.git/blobdiff - playbooks/debian/init-system.sh
Feat(remove-systemd) Split `remove-systemd` as a separate plabook
[ansible.git] / playbooks / debian / init-system.sh
index 2363c803ea412f30c6e0669ab37363b1eff5b5f6..07a8ff76bf5434b09b4fa9757bfae4ef3100d715 100755 (executable)
@@ -9,9 +9,12 @@ host="$1"
 shift
 
 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.yml "$@" -e hosts="$host" \
    --become-method=su -K &&
-exec ansible-playbook init-system2.yml "$@" -e hosts="$host"
+ansible-playbook remove-systemd.yml "$@" -e hosts="$host" &&
+exec ansible-playbook ../init-system2.yml "$@" -e hosts="$host"