-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (40 loc) · 1.17 KB
/
Makefile
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
default:
dns:
@echo "Repopulating DNS entries..."
@ansible-playbook playbooks/dns.yml -K
node:
@echo "Bootstrapping Node.JS hosts..."
@ansible-playbook playbooks/node_hosts.yml -K
traefik:
@echo "Repopulating DNS entries..."
@ansible-playbook playbooks/traefik.yml -K
docker-hosts:
@echo "Installing docker on docker hosts..."
@ansible-playbook playbooks/docker_hosts.yml -K
traefik-logs:
@echo "Tailing traefik logs..."
ssh -t [email protected] "cd /home/docker/docker/traefik && docker compose logs -f traefik"
media-kill:
@echo "Stopping media server..."
@ansible-playbook playbooks/media-servers.yml -K -e state=absent
media-stop:
@echo "Stopping media server..."
@ansible-playbook playbooks/media-servers.yml -K -e state=stopped
media-start:
@echo "Starting media server..."
@ansible-playbook playbooks/media-servers.yml -K -e state=started
media:
@echo "Media server"
@echo "-----------"
@echo "1. Start"
@echo "2. Stop"
@echo "3. Kill"
@echo "-----------"
@read -p "Enter your choice: " choice; \
case $$choice in \
1) make media-start;; \
2) make media-stop;; \
3) make media-kill;; \
4) exit 0;; \
*) echo "Invalid choice";; \
esac