forked from frischHWC/one-script-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrequirements.sh
More file actions
38 lines (27 loc) · 817 Bytes
/
requirements.sh
File metadata and controls
38 lines (27 loc) · 817 Bytes
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
#!/bin/bash
# TODO: Make it for Debian, Suse & Mac
### WARNING: Only Working on RHEL machines actually ####
### Requirements to run this script #####
echo "Set script runnable"
chmod +x *.sh
echo "Install wget"
yum -y install wget
echo "Install Git"
yum -y install git
echo "Install Unzip"
yum -y install unzip
echo "Install network packages"
yum -y install dnsutils
yum -y install bind-utils
echo "Install Python 3"
yum -y install python3
echo "Install ansible"
yum -y install epel-release
yum -y install ansible
echo "Generates a local key"
mkdir -p ~/.ssh/
ssh-keygen -f ~/.ssh/id_rsa -t rsa -N ''
echo "Install ansible required collections"
ansible-galaxy collection install community.general
ansible-galaxy collection install freeipa.ansible_freeipa
ansible-galaxy collection install community.crypto