ansible-role-apache/tasks/users.yml

12 lines
384 B
YAML
Raw Normal View History

2014-11-08 22:10:49 +01:00
---
- 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: "{{ item.state | default('present') }}"
2015-10-23 19:01:58 +02:00
append_privs: "{{ item.append_privs | default('no') }}"
2016-02-29 06:37:00 +01:00
with_items: "{{ mysql_users }}"
no_log: true