-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhomelabos.yml
57 lines (50 loc) · 1.15 KB
/
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
---
# Initial setup so Ansible can actually work.
- name: Install python (required by Ansible).
gather_facts: no
hosts: all
become: True
become_method: sudo
pre_tasks:
- name: 'Update Apt Cache'
raw: sudo apt-get update
- name: 'Install Python'
raw: sudo apt-get -y install python-simplejson
# Configure the server itself
- hosts: all
become: True
gather_facts: True
tags: common
roles:
# Install Docker, configure basic server settings
- common
# Configure a TOR hidden service for remote access without a public IP
- role: toke.tor
hidden_services:
- dir: /var/lib/tor/ssh-onion
port: 22
source: 127.0.0.1:22
- dir: /var/lib/tor/https-onion
port: 443
source: 127.0.0.1:443
- dir: /var/lib/tor/http-onion
port: 80
source: 127.0.0.1:80
# Install and configure HomelabOS documentation
- hosts: all
become: True
gather_facts: True
tags:
- homelabos
- docs
roles:
- docs
# Install and configure HomelabOS services
- hosts: all
become: True
gather_facts: True
tags:
- homelabos
- deploy
roles:
- homelabos