ansible-role-grafana/tasks/database.yml
2023-11-20 11:47:05 +01:00

14 lines
420 B
YAML

---
- name: "Database | Erstelle Datenbank"
community.mysql.mysql_db:
name: "{{ grafana_db }}"
login_unix_socket: "{{ mysql_socket }}"
login_user: root
- name: "Database | Erstelle Datenbank-Nutzer"
community.mysql.mysql_user:
name: "{{ grafana_db_user }}"
password: "{{ grafana_db_password }}"
priv: "{{ grafana_db }}.*:ALL"
login_unix_socket: "{{ mysql_socket }}"
login_user: root