ansible-role-apache/tasks/users.yml
2015-10-23 19:01:58 +02:00

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