Sync runner checkout / sync (push) Successful in 7s
Each host mounts wp-content and gets a compose file from inventory instead of a hand-copied one. Also allow LAN TCP 8020 so abc_voice is reachable through UFW.
39 lines
948 B
YAML
39 lines
948 B
YAML
---
|
|
# Order: base OS → central Loki/Prometheus/Grafana → Alloy agents.
|
|
# Alloy on every host pushes to the stack on ai-server-4080, so the stack
|
|
# must exist before (or at least as Alloy starts against) those endpoints.
|
|
|
|
- name: Provision webservers (base)
|
|
hosts: webservers
|
|
become: true
|
|
roles:
|
|
- common
|
|
- ufw
|
|
- docker
|
|
- nodejs
|
|
- gitea-key
|
|
- tianji
|
|
# NFS wp-content and generated compose for inventory/wordpress_sites.yml.
|
|
- role: wordpress
|
|
tags: [wordpress]
|
|
|
|
- name: Provision central observability stack
|
|
hosts: ai-server-4080
|
|
become: true
|
|
roles:
|
|
- role: observability
|
|
when: observability_stack | default(false) | bool
|
|
|
|
- name: Provision SearxNG (chat_backend grounded search)
|
|
hosts: ai-server-4080
|
|
become: true
|
|
roles:
|
|
- role: searxng
|
|
when: searxng_stack | default(false) | bool
|
|
|
|
- name: Provision Alloy agents
|
|
hosts: webservers
|
|
become: true
|
|
roles:
|
|
- alloy
|