dotfiles/bin/initial-setup

26 lines
521 B
Plaintext
Raw Normal View History

2022-11-12 11:17:16 -08:00
#!/usr/bin/env sh
set -e
echo -e "Starting initial setup for Fedora..."
# Install ansible and run playbook
sudo dnf -y update && sudo dnf install -y ansible
2022-11-17 22:04:23 -08:00
# Install ansible extensions
ansible-galaxy install -r ~/.dotfiles/provision/requirements.yml
2022-11-12 11:17:16 -08:00
# Goto playbook and run it
cd ~/.dotfiles/provision
2022-11-12 11:17:16 -08:00
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 1
fi
sudo reboot