mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
28 lines
595 B
Bash
28 lines
595 B
Bash
#!/usr/bin/env bash
|
|
|
|
echo -e "Starting initial setup..."
|
|
|
|
# Install ansible python dependencies
|
|
sudo xpbs-install -Syu
|
|
sudo xbps-install python3 python3-pip ansible
|
|
sudo pip install pexpect github3.py
|
|
|
|
# Install ansible extensions
|
|
ansible-galaxy install -r {{ .chezmoi.workingTree }}/provision/requirements.yml
|
|
|
|
# Goto playbook and run it
|
|
cd {{ .chezmoi.workingTree }}/provision
|
|
ansible-playbook setup.yml -i hosts --ask-become-pass
|
|
|
|
# Return to where you were
|
|
cd -
|
|
|
|
read -p "Reboot? " -n 1 -r
|
|
echo # (optional) move to a new line
|
|
if [[ ! $REPLY =~ ^[Yy]$ ]]
|
|
then
|
|
exit 0
|
|
fi
|
|
|
|
sudo reboot
|