--- - 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 }}" roles: - apt - postgresql - influxdb - redis - systemd