This repository has been archived on 2020-08-22. You can view files and clone it, but cannot push or open issues or pull requests.
ansible/backend.yml

40 lines
1.4 KiB
YAML
Raw Normal View History

---
- 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 }
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 }}"
2020-05-28 15:08:29 +00:00
vault:
- "postgresql"
roles:
2020-05-28 15:08:29 +00:00
- vault
- apt
- postgresql
- influxdb
- redis
- systemd