minilab/minilab.yaml

92 lines
2.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 proper config for Promotheus node-exporter (Alpine)
hosts: alpine
tags: monitoring,prometheus,exporter,alpine
become: true
roles:
- adhdgirl.minilab.prometheus
- name: Ensure proper config for Prometheus node-exporter (Debian)
hosts: debian,pve,!mors
tags: monitoring,prometheus,exporter,debian
become: true
roles:
- prometheus.prometheus.node_exporter
- 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,ntfy
become: true
roles:
- adhdgirl.minilab.traefik
- adhdgirl.minilab.authentik
- adhdgirl.minilab.arr
- adhdgirl.minilab.calibre
- adhdgirl.minilab.cloudflared
- adhdgirl.minilab.forgejo
- adhdgirl.minilab.immich
- adhdgirl.minilab.ntfy
- adhdgirl.minilab.readeck
- adhdgirl.minilab.syncthing
- adhdgirl.minilab.termix
- adhdgirl.minilab.valkey
- name: Configure frigate
hosts: curren
tags: docker,frigate
become: true
roles:
- adhdgirl.minilab.frigate
- name: Configure and install Prometheus
hosts: super
tags: monitoring,prometheus
become: true
roles:
- prometheus.prometheus.prometheus
- prometheus.prometheus.snmp_exporter
- adhdgirl.minilab.grafana