homeserver-iac/run.yml

105 lines
1.8 KiB
YAML
Raw Normal View History

---
- 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
tags:
- ddclient
2023-08-23 17:31:22 -04:00
when: enable_ddclient
- 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-23 17:31:22 -04:00
- role: mail
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-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'
- role: containers
tags:
- containers
2023-08-26 22:02:29 -04:00
when: '"fleet" in group_names'
- role: syncthing
tags:
- syncthing
when: '"syncthing" in group_names'
- role: website
tags:
- website
when: '"website" in group_names'
2023-08-26 22:02:29 -04:00
- role: dotfiles
tags:
- dotfiles
when: enable_dotfiles
dotfile_users:
- "{{ ansible_user }}"
- "{{ username }}"