2020-05-16 21:47:54 +00:00
|
|
|
---
|
|
|
|
- hosts: backend
|
|
|
|
vars:
|
2020-05-27 17:38:21 +00:00
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- { package: "postgresql", state: present }
|
|
|
|
- { package: "python3-psycopg2", state: present }
|
|
|
|
- { package: "redis", state: present }
|
|
|
|
- { package: "influxdb", state: present }
|
2020-05-16 21:47:54 +00:00
|
|
|
systemd:
|
|
|
|
services:
|
2020-05-25 19:42:54 +00:00
|
|
|
- { name: "postgresql@12-main", enabled: true, action: reloaded }
|
2020-05-16 21:47:54 +00:00
|
|
|
- { name: "redis", enabled: true, action: restarted }
|
|
|
|
- { name: "influxdb", enabled: true, action: restarted }
|
|
|
|
overrides:
|
|
|
|
- "influxdb"
|
2020-05-21 18:22:20 +00:00
|
|
|
postgres:
|
2020-05-25 19:42:54 +00:00
|
|
|
host: "{{ global.backend.postgres.host }}"
|
|
|
|
port: "{{ global.backend.postgres.port }}"
|
2020-05-21 18:22:20 +00:00
|
|
|
databases:
|
|
|
|
- grafana
|
|
|
|
- pleroma
|
|
|
|
- gitea
|
|
|
|
- murmur
|
|
|
|
redis:
|
2020-05-25 19:42:54 +00:00
|
|
|
host: "{{ global.backend.redis.host }}"
|
|
|
|
port: "{{ global.backend.redis.port }}"
|
2020-05-21 18:22:20 +00:00
|
|
|
influxdb:
|
|
|
|
storage: "/var/lib/influxdb"
|
2020-05-25 19:42:54 +00:00
|
|
|
port: "{{ global.backend.influxdb.port }}"
|
2020-05-28 15:08:29 +00:00
|
|
|
vault:
|
|
|
|
- "postgresql"
|
2020-05-16 21:47:54 +00:00
|
|
|
roles:
|
2020-05-28 15:08:29 +00:00
|
|
|
- vault
|
2020-05-16 21:47:54 +00:00
|
|
|
- apt
|
|
|
|
- postgresql
|
|
|
|
- influxdb
|
|
|
|
- redis
|
|
|
|
- systemd
|