2022-12-29 00:48:31 -08:00
|
|
|
#!/usr/bin/env bash
|
2022-12-10 17:09:35 -08:00
|
|
|
|
2022-12-29 00:48:31 -08:00
|
|
|
echo -e "Starting initial setup..."
|
|
|
|
|
|
|
|
# Install ansible python dependencies
|
2022-12-29 23:49:46 -08:00
|
|
|
sudo xpbs-install -Syu -y
|
|
|
|
sudo xbps-install python3 python3-pip ansible -y
|
|
|
|
sudo pip install pexpect github3.py -y
|
2022-12-10 17:09:35 -08:00
|
|
|
|
|
|
|
# Install ansible extensions
|
2022-12-10 23:53:30 -08:00
|
|
|
ansible-galaxy install -r {{ .chezmoi.workingTree }}/provision/requirements.yml
|
2022-12-10 17:09:35 -08:00
|
|
|
|
|
|
|
# Goto playbook and run it
|
2022-12-10 23:53:30 -08:00
|
|
|
cd {{ .chezmoi.workingTree }}/provision
|
2022-12-10 17:09:35 -08:00
|
|
|
ansible-playbook setup.yml -i hosts --ask-become-pass
|
|
|
|
|
|
|
|
# Return to where you were
|
|
|
|
cd -
|
|
|
|
|
2022-12-29 23:49:46 -08:00
|
|
|
echo "I'd suggest rebooting"
|