ansible-role-grafana/tasks/database.yml

15 lines
420 B
YAML
Raw Normal View History

2022-12-27 10:43:32 +01:00
---
2023-11-20 11:47:05 +01:00
- name: "Database | Erstelle Datenbank"
community.mysql.mysql_db:
2022-12-27 10:43:32 +01:00
name: "{{ grafana_db }}"
login_unix_socket: "{{ mysql_socket }}"
login_user: root
2023-11-20 11:47:05 +01:00
- name: "Database | Erstelle Datenbank-Nutzer"
community.mysql.mysql_user:
2022-12-27 10:43:32 +01:00
name: "{{ grafana_db_user }}"
password: "{{ grafana_db_password }}"
priv: "{{ grafana_db }}.*:ALL"
login_unix_socket: "{{ mysql_socket }}"
login_user: root