ansible-role-apache/tasks/users.yml
Raul Ferriz 3d5668fb04 Allow append privileges
I need one user to access two different databases, with this change I can handle it.
2015-10-21 13:43:53 +02:00

10 lines
327 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
append_priv: "{{ item.append_priv | default('no') }}"
with_items: mysql_users