ansible-role-lstu/tasks/database.yml

19 lines
506 B
YAML
Raw Normal View History

2022-12-10 15:02:35 +01:00
---
- name: "database | Erstelle Datenbank"
ansible.builtin.mysql_db:
name: "{{ lstu_db }}"
state: present
login_unix_socket: "{{ mysql_socket }}"
login_user: root
- name: "database | Erstelle Benuzter"
ansible.builtin.mysql_user:
name: "{{ lstu_db_user }}"
password: "{{ lstu_db_password }}"
host: "{{ inventory_hostname }}"
priv: "{{ lstu_db }}.*:ALL"
update_password: on_create
state: present
login_unix_socket: "{{ mysql_socket }}"
login_user: root