-
Notifications
You must be signed in to change notification settings - Fork 0
/
playbook.homelabos.yml
64 lines (58 loc) · 1.28 KB
/
playbook.homelabos.yml
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
54
55
56
57
58
59
60
61
62
63
64
---
# Configure a TOR hidden service for remote access without a public IP
- name: "Setup TOR"
tags: tor
hosts: all
become: true
become_method: sudo
roles:
- role: tor
when: enable_tor
# Configure the server itself
- name: configure HomelabOS
hosts: all
become: true
# gather_facts: "True"
tags: common
roles:
# Install Docker, configure basic server settings
- homelabos_common
- name: "Deploy Bastion Host with Wireguard"
hosts: all
become: true
become_method: sudo
tags: bastion
tasks:
- include_role:
name: homelabos_wireguard
when: bastion.enable == True
- name: Configure documentation
hosts: homelabos
become: true
tags:
- homelabos
tasks:
- include_role:
name: homelabos_docs
when: docs.enable == True
# Install and configure HomelabOS services
- name: Install and configure HomelabOS services
hosts: homelabos
become: true
# gather_facts: "True"
tags:
- homelabos
- deploy
roles:
- homelabos_deploy
# Configure per-service port-forwarding
- name: Configure per-service port-forwarding
gather_facts: false
hosts: bastion
become: true
become_method: sudo
tags: deploy
tasks:
- include_role:
name: homelabos_port_forwarding
when: bastion.enable == True