mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2025-01-10 20:00:18 +01:00
18 lines
524 B
YAML
18 lines
524 B
YAML
|
---
|
||
|
- name: Ensure MySQL databases are present.
|
||
|
mysql_db:
|
||
|
name: "{{ item.name }}"
|
||
|
collation: "{{ item.collation | default('utf8_general_ci') }}"
|
||
|
encoding: "{{ item.encoding | default('utf8') }}"
|
||
|
state: present
|
||
|
with_items: mysql_databases
|
||
|
|
||
|
- 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
|