mirror of
https://github.com/aljazceru/ansible-role-mysql.git
synced 2026-01-06 22:54:20 +01:00
10 lines
269 B
YAML
10 lines
269 B
YAML
---
|
|
- name: Ensure MySQL users are present.
|
|
mysql_user:
|
|
name: "{{ item.name }}"
|
|
host: "{{ item.host | default('localhost') }}"
|
|
password: "{{ item.password }}"
|
|
priv: "{{ item.priv | default('*.*:USAGE') }}"
|
|
state: present
|
|
with_items: mysql_users
|