2023-08-21 17:19:29 -04:00
|
|
|
---
|
|
|
|
- hosts: all
|
|
|
|
become: yes
|
|
|
|
|
|
|
|
gather_facts: no
|
|
|
|
|
|
|
|
pre_tasks:
|
|
|
|
- import_tasks: tasks/set_host.yml
|
|
|
|
tags:
|
|
|
|
- always
|
|
|
|
- host
|
|
|
|
- import_tasks: tasks/ssh_port.yml
|
|
|
|
tags:
|
|
|
|
- always
|
|
|
|
- port
|
|
|
|
- import_tasks: tasks/bootstrap.yml
|
|
|
|
tags:
|
|
|
|
- bootstrap
|
|
|
|
|
|
|
|
roles:
|
|
|
|
- role: system
|
|
|
|
tags:
|
|
|
|
- system
|
|
|
|
|
|
|
|
- role: filesystems
|
|
|
|
tags:
|
|
|
|
- filesystems
|
|
|
|
when: external_disk
|
|
|
|
|
|
|
|
- role: backup
|
|
|
|
tags:
|
|
|
|
- backup
|
|
|
|
when: backup_disk
|
|
|
|
|
|
|
|
- role: networking/connection
|
|
|
|
tags:
|
|
|
|
- connection
|
|
|
|
when: enable_connection
|
|
|
|
|
|
|
|
- role: firewall
|
|
|
|
tags:
|
|
|
|
- firewall
|
|
|
|
|
2023-08-26 22:02:29 -04:00
|
|
|
- role: networking/ddclient
|
2023-08-21 17:19:29 -04:00
|
|
|
tags:
|
|
|
|
- ddclient
|
2023-08-23 17:31:22 -04:00
|
|
|
when: enable_ddclient
|
2023-08-21 17:19:29 -04:00
|
|
|
|
|
|
|
- role: networking/nameserver
|
|
|
|
tags:
|
|
|
|
- nameserver
|
2023-08-26 22:02:29 -04:00
|
|
|
when: '"nameserver" in group_names'
|
2023-08-23 17:58:22 -04:00
|
|
|
|
|
|
|
- role: networking/hosts
|
|
|
|
tags:
|
|
|
|
- hosts
|
2023-08-21 17:19:29 -04:00
|
|
|
|
2023-08-23 17:31:22 -04:00
|
|
|
- role: mail
|
2023-08-21 17:19:29 -04:00
|
|
|
tags:
|
|
|
|
- mail
|
2023-08-26 22:02:29 -04:00
|
|
|
when: '"mailserver" in group_names'
|
2023-08-23 17:31:22 -04:00
|
|
|
|
|
|
|
- role: caddy
|
|
|
|
tags:
|
|
|
|
- caddy
|
2023-08-26 22:02:29 -04:00
|
|
|
when: '"caddy" in group_names'
|
2023-08-21 17:19:29 -04:00
|
|
|
|
2023-08-23 18:22:50 -04:00
|
|
|
- role: haproxy
|
|
|
|
tags:
|
|
|
|
- haproxy
|
2023-08-26 22:02:29 -04:00
|
|
|
when: '"haproxy" in group_names'
|
2023-08-23 18:22:50 -04:00
|
|
|
|
2024-06-16 15:05:12 -04:00
|
|
|
- role: wireguard
|
|
|
|
tags:
|
|
|
|
- wireguard
|
|
|
|
when: '"wireguard" in group_names'
|
|
|
|
|
2023-09-07 21:47:16 -04:00
|
|
|
- role: synapse
|
|
|
|
tags:
|
|
|
|
- synapse
|
|
|
|
when: '"synapse" in group_names'
|
|
|
|
|
2023-08-23 20:48:34 -04:00
|
|
|
- role: containers
|
|
|
|
tags:
|
|
|
|
- containers
|
2023-08-26 22:02:29 -04:00
|
|
|
when: '"fleet" in group_names'
|
|
|
|
|
2023-09-04 15:28:03 -04:00
|
|
|
- role: syncthing
|
|
|
|
tags:
|
|
|
|
- syncthing
|
|
|
|
when: '"syncthing" in group_names'
|
|
|
|
|
2024-04-05 14:58:04 -04:00
|
|
|
- role: website
|
|
|
|
tags:
|
|
|
|
- website
|
|
|
|
when: '"website" in group_names'
|
|
|
|
|
2023-08-26 22:02:29 -04:00
|
|
|
- role: dotfiles
|
|
|
|
tags:
|
|
|
|
- dotfiles
|
2024-04-05 14:58:04 -04:00
|
|
|
when: enable_dotfiles
|
|
|
|
dotfile_users:
|
|
|
|
- "{{ ansible_user }}"
|
|
|
|
- "{{ username }}"
|