-
Notifications
You must be signed in to change notification settings - Fork 0
/
fedoraSetup.sh
executable file
·44 lines (30 loc) · 1.15 KB
/
fedoraSetup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env bash
SETUPDIR="${HOME}/setup"
DOTFIELS="${HOME}/dotFiles"
echo "Ensuring no previous Setup"
# rm -rf "$SETUPDIR"
echo "Updating System"
sudo dnf distro-sync -y
# sudo dnf groupinstall "Ansible node" -y
sudo dnf install -y ansible git python-pip python-dnf python-pip python ansible ansible-lint pass
# echo "Getting dotfiles to progress"
# git clone [email protected]:Findarato/dotFiles.git "${DOTFIELS}"
# cd "${DOTFIELS}"
# git submodule update --init --recursive
# git submodule update --recursive --remote
echo "Working in the ${SETUPDIR} Directory"
mkdir -p "${SETUPDIR}"
cd "${SETUPDIR}"
echo "Starting Deployment"
cd "${SETUPDIR}"
git clone "https://github.com/Findarato/Ansible-Workstation.git" "${SETUPDIR}/Ansible-Workstation"
echo "Chaning to Ansible directory"
cd "${SETUPDIR}/Ansible-Workstation"
echo "Setting up Ansible Roles"
ansible-galaxy install -r "${SETUPDIR}/Ansible-Workstation/roles/requirements.yml"
echo "Running Ansible"
ansible-playbook -i localHosts setup_computer.yml --extra-var local_user=${USER} --ask-become
# Clean up the Setup
# echo "Cleaning up Setup directory"
# rm -rf ${SETUPDIR}
# Things to add into gsettings