forked from xtophd/RHEL8-Workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrhel8-workshop.sh
45 lines (36 loc) · 1.11 KB
/
rhel8-workshop.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
#!/bin/bash
## This script is intended to be run:
## on the control host (ie: workstation)
## CWD = ~root/RHEL8-Workshop
myInventory="./config/master-config.yml"
if [ ! -e "${myInventory}" ] ; then
echo "ERROR: Are you in the right directory? Can not find ${myInventory}" ; exit
exit
fi
case "$1" in
"all")
time ansible-playbook -i ${myInventory} -f 10 ./playbooks/rhel8-workshop.yml
;;
"appstream" | \
"boom" | \
"buildah" | \
"ebpf" | \
"firewalld" | \
"nftables" | \
"prep" | \
"podman" | \
"settings" | \
"stratis" | \
"systemd" | \
"tlog" | \
"virt" | \
"vdo" | \
"wayland" | \
"webconsole" | \
"kpatch")
time ansible-playbook -i ${myInventory} -f 10 --tags $1 ./playbooks/rhel8-workshop.yml
;;
*)
echo "USAGE: bastion-setup.sh [ all | prep | appstream | boom | buildah | ebpf | firewalld | nftables | podman | settings | stratis | systemd | tlog | virt | vdo | wayland | webconsole | kpatch ]"
;;
esac