minilab/minilab.yaml
2026-01-18 16:19:33 +00:00

57 lines
1.3 KiB
YAML

---
# Pre-run tasks for all hosts
- name: Pre-run tasks for all hosts
hosts: all
tags: always
become: true
pre_tasks:
- name: Update package cache (Alpine)
tags: always
community.general.apk:
update_cache: true
when: ansible_facts["distribution"] == "Alpine"
- name: Update package cache (Debian, and derivatives)
tags: always
ansible.builtin.apt:
update_cache: true
changed_when: false
when: ansible_facts["distribution"] in debian_derivatives
- name: Common tasks for all hosts
hosts: all
tags: common
become: true
roles:
- adhdgirl.minilab.common
- name: Ensure docker is installed and running
hosts: docker
tags: docker
become: true
roles:
- adhdgirl.minilab.docker
- name: Configure AdGuard home hosts
hosts: adguard_servers
tags: docker,adguard
become: true
roles:
- adhdgirl.minilab.adguardhome
- name: Configure AdguardHome-Sync hosts
hosts: adguard_sync
tags: docker,adguard
become: true
roles:
- adhdgirl.minilab.adguardhome_sync
- name: Configure Coder hosts
hosts: coder
tags: docker,coder
become: true
roles:
- adhdgirl.minilab.coder
- name: Configure nemetona
hosts: nemetona
tags: docker,authentik,caddy
become: true
roles:
# - adhdgirl.minilab.authentik
- adhdgirl.minilab.caddy
- adhdgirl.minilab.arr