mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
26 lines
521 B
Bash
26 lines
521 B
Bash
#!/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
|
|
|
|
# Install ansible extensions
|
|
ansible-galaxy install -r ~/.dotfiles/provision/requirements.yml
|
|
|
|
# Goto playbook and run it
|
|
cd ~/.dotfiles/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 1
|
|
fi
|
|
|
|
sudo reboot
|