-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathsetup.sh
executable file
·53 lines (42 loc) · 1.58 KB
/
setup.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
45
46
47
48
49
50
51
52
53
#!/usr/bin/env bash
set -eo pipefail
# Trap Ctrl+C and exit
trap "exit" INT
# Color Variables
NC='\033[0m'
Red='\033[0;31m' # Red
Green='\033[0;32m' # Green
Yellow='\033[0;33m' # Yellow
# Display ASCII art
cat <<"EOF"
_________ __
/ _____/ _____/ |_ __ ________
\_____ \_/ __ \ __\ | \____ \
/ \ ___/| | | | / |_> >
/_______ /\___ >__| |____/| __/
\/ \/ |__|
EOF
# Install Base Packages (ensure development tools and dependencies are included)
echo -e "${Yellow}Installing essential packages${NC}"
sudo dnf update && sudo dnf install -y git curl python3 python3-pip python3-devel dnf-plugins-core
# Install Python dependencies from requirements.txt
echo -e "${Yellow}Installing Python dependencies from requirements.txt${NC}"
pip install -r requirements.txt
# Install Ansible roles and collections
echo -e "${Yellow}Installing Ansible roles and collections from requirements.yml${NC}"
ansible-galaxy install -r requirements.yml
ansible-galaxy collection install -r requirements.yml
# Setup tuxedo software
echo -e "${Yellow}Setting up tuxedo software${NC}"
ansible-playbook playbooks/tuxedo.yml --ask-become-pass
# Setup dotfiles playbook
echo -e "${Yellow}Setting up dotfiles${NC}"
ansible-playbook playbooks/dotfiles.yml --ask-become-pass
# Run Ansible playbook for setup
echo -e "${Yellow}Running Ansible playbook for setup${NC}"
ansible-playbook playbooks/setup.yml --ask-become-pass
# Set Zsh as the default shell for the session
echo -e "${Yellow}Switching to Zsh${NC}"
exec zsh
# Final message
echo -e "${Green}Setup complete!${NC}"