-
Notifications
You must be signed in to change notification settings - Fork 0
/
playbook.homelabos.yml
56 lines (52 loc) · 1.21 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
---
# Initial setup so Ansible can actually work.
- name: Install python (required by Ansible).
gather_facts: "False"
hosts: all
become: "True"
become_method: sudo
any_errors_fatal: true
pre_tasks:
- name: "Update Apt Cache"
raw: sudo apt-get update
run_once: true
- name: "Install Python"
raw: sudo apt-get -y install python-simplejson
run_once: true
# 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
# Install and configure HomelabOS services
- name: Install and configure HomelabOS services
hosts: homelabos
become: true
# gather_facts: "True"
tags:
- homelabos
- deploy
roles:
- homelabos_deploy