ansible-role-lstu/tasks/database.yml
2022-12-13 12:56:25 +01:00

18 lines
506 B
YAML

---
- 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