infra/roles/services/tasks/directories.yml
jack 972a76db4c
All checks were successful
CI/CD / syntax-check (push) Successful in 3m0s
CI/CD / deploy (push) Successful in 6m51s
feat: add monitoring stack (Prometheus + Grafana + cAdvisor + Node Exporter)
- Adds monitoring Docker network (internal)
- Prometheus scrapes node-exporter (host metrics) and cAdvisor (containers)
  with 30-day retention
- Grafana exposed at dashboard.csrx.ru with pre-provisioned datasource
  and two dashboards: Node Exporter Full (1860) and cAdvisor (14282)
- Vault secret: vault_grafana_admin_password

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-22 03:05:34 +07:00

31 lines
745 B
YAML

---
- name: Create services root directory
ansible.builtin.file:
path: "{{ services_root }}"
state: directory
owner: "{{ deploy_user }}"
group: "{{ deploy_group }}"
mode: "0755"
- name: Create service subdirectories
ansible.builtin.file:
path: "{{ services_root }}/{{ item }}"
state: directory
owner: "{{ deploy_user }}"
group: "{{ deploy_group }}"
mode: "0755"
loop:
- traefik
- traefik/dynamic
- vaultwarden/data
- forgejo/data
- forgejo/db
- plane/pgdata
- plane/media
- syncthing/config
- syncthing/data
- act_runner
- prometheus
- grafana/provisioning/datasources
- grafana/provisioning/dashboards
- grafana/provisioning/dashboards/json