-
Notifications
You must be signed in to change notification settings - Fork 33
/
main.yml
66 lines (58 loc) · 1.67 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
---
- name: Setup the homeserver
hosts: all
become: true
tasks:
- name: Update server and install essential packages
ansible.builtin.include_tasks: tasks/essential.yml
- name: Install docker
ansible.builtin.include_tasks: tasks/docker.yml
- name: Deploy docker apps
ansible.builtin.include_tasks: "tasks/{{ item }}.yml"
loop:
- authelia
- traefik
- code_server
- dashdot
- duplicati
- filebrowser
- guacamole
- heimdall
- homarr
- jellyfin
- jellyseerr
- monitoring
- n8n
- nextcloud
- portainer
- prowlarr
- qbittorrent
- radarr
- requestrr
- sonarr
- syncthing
- unmanic
- uptime_kuma
- vaultwarden
- watchtower
- wireguard
- name: Modify ownership of data and docker_apps directories
ansible.builtin.include_tasks: tasks/add_ownership.yml
- name: Reboot the server
ansible.builtin.reboot:
msg: "Rebooting server to finish setup"
- name: Check if traefik is working properly with authelia middleware
ansible.builtin.uri:
url: "https://wg.{{ domain }}"
ignore_errors: true
register: traefik_authelia_check
- name: Wait to ensure authelia is up and running
ansible.builtin.wait_for:
timeout: 10
when: traefik_authelia_check.status != 200
- name: Restart traefik container to ensure it can find authelia middleware
community.docker.docker_container:
name: traefik
state: started
restart: true
when: traefik_authelia_check.status != 200