40 lines
1.4 KiB
YAML
40 lines
1.4 KiB
YAML
---
|
|
- hosts: backend
|
|
vars:
|
|
apt:
|
|
packages:
|
|
- { package: "postgresql", state: present }
|
|
- { package: "python3-psycopg2", state: present }
|
|
- { package: "redis", state: present }
|
|
- { package: "influxdb", state: present }
|
|
systemd:
|
|
services:
|
|
- { name: "postgresql@12-main", enabled: true, action: reloaded }
|
|
- { name: "redis", enabled: true, action: restarted }
|
|
- { name: "influxdb", enabled: true, action: restarted }
|
|
overrides:
|
|
- "influxdb"
|
|
postgres:
|
|
host: "{{ global.backend.postgres.host }}"
|
|
port: "{{ global.backend.postgres.port }}"
|
|
databases:
|
|
- grafana
|
|
- pleroma
|
|
- gitea
|
|
- murmur
|
|
redis:
|
|
host: "{{ global.backend.redis.host }}"
|
|
port: "{{ global.backend.redis.port }}"
|
|
influxdb:
|
|
storage: "/var/lib/influxdb"
|
|
port: "{{ global.backend.influxdb.port }}"
|
|
vault:
|
|
- "postgresql"
|
|
roles:
|
|
- vault
|
|
- apt
|
|
- postgresql
|
|
- influxdb
|
|
- redis
|
|
- systemd
|