26 lines
406 B
YAML
26 lines
406 B
YAML
|
---
|
||
|
- name: Install software
|
||
|
package:
|
||
|
name: "{{ item }}"
|
||
|
state: present
|
||
|
with_items: "{{ db_packages }}"
|
||
|
|
||
|
|
||
|
- name: MariaDB create DB
|
||
|
mysql_db:
|
||
|
name: "{{ db_name }}"
|
||
|
state: present
|
||
|
run_once: True
|
||
|
|
||
|
|
||
|
- name: MariaDB create user
|
||
|
mysql_user:
|
||
|
name: "{{ db_user }}"
|
||
|
password: "{{ db_password }}"
|
||
|
priv: '{{ db_name }}.*:ALL'
|
||
|
host: '%'
|
||
|
state: present
|
||
|
run_once: True
|
||
|
|
||
|
|