-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.yml
82 lines (73 loc) · 1.74 KB
/
main.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
---
- name: Deploy common to all hosts
hosts: all
become: true
roles:
- common
tasks:
- name: Install extra packages as per host_vars
ansible.builtin.include_tasks: tasks/extra_packages.yml
- name: Set MOTD banner
ansible.builtin.include_tasks: tasks/banner.yml
tags: common
- name: Run specific tasks for workstations
hosts: workstations
become: true
tasks:
- name: Configure backlight
ansible.builtin.include_tasks: tasks/backlight.yml
- name: Configure cups
ansible.builtin.include_tasks: tasks/cups.yml
- name: Configure VFIO
ansible.builtin.include_tasks: tasks/vfio.yml
tags: workstations
- name: Run specific tasks for shale
hosts: shale
become: true
tasks:
- name: Configure VIA
ansible.builtin.include_tasks: tasks/via.yml
- name: Add Home Assistant user for remote shutdown
ansible.builtin.include_tasks: tasks/hass.yml
tags: shale
- name: Run specific tasks for slate
hosts: slate
become: true
tasks:
- name: Add RTL8821ce wireless network driver
ansible.builtin.include_tasks: tasks/rtl8821ce.yml
tags: slate
- name: Deploy VPN to galena and slate
hosts: galena slate
become: true
roles:
- wireguard
tags: vpn
- name: Deploy reverse proxy to galena
hosts: galena
become: true
roles:
- nginx
- certbot
tags: proxy
- name: Deploy DNS to galena
hosts: galena
become: true
roles:
- pihole
tags: dns
- name: Deploy web server to gabbro
hosts: gabbro
become: true
roles:
- nginx
tasks:
- name: Deploy zaszi.net website
ansible.builtin.include_tasks: tasks/zaszi-web.yml
tags: web
- name: Deploy dotfiles to all hosts
hosts: all
become: false
roles:
- dotfiles
tags: dotfiles