roles/mariadb: Use mariadb_databases instead of wordpress_blogs for variable
This commit is contained in:
parent
386482494d
commit
2efe2479ad
@ -46,16 +46,16 @@
|
|||||||
template: src=.my.cnf.j2 dest=/root/.my.cnf owner=root mode=0600
|
template: src=.my.cnf.j2 dest=/root/.my.cnf owner=root mode=0600
|
||||||
tags: mariadb
|
tags: mariadb
|
||||||
|
|
||||||
- name: Create WordPress database(s)
|
- name: Create MariaDB database(s)
|
||||||
mysql_db: db={{ item.wordpress_db_name }} state=present encoding=utf8mb4
|
mysql_db: db={{ item.name }} state=present encoding=utf8mb4
|
||||||
with_items: "{{ wordpress_blogs }}"
|
with_items: "{{ mariadb_databases }}"
|
||||||
when: wordpress_blogs is defined
|
when: mariadb_databases is defined
|
||||||
tags: mariadb
|
tags: mariadb
|
||||||
|
|
||||||
- name: Create WordPress user(s)
|
- name: Create MariaDB user(s)
|
||||||
mysql_user: name={{ item.wordpress_db_user }} password={{ item.wordpress_db_pass }} priv={{ item.wordpress_db_name }}.*:ALL state=present
|
mysql_user: name={{ item.user }} password={{ item.pass }} priv={{ item.name }}.*:ALL state=present
|
||||||
with_items: "{{ wordpress_blogs }}"
|
with_items: "{{ mariadb_databases }}"
|
||||||
when: wordpress_blogs is defined
|
when: mariadb_databases is defined
|
||||||
tags: mariadb
|
tags: mariadb
|
||||||
|
|
||||||
# vim: set ts=2 sw=2:
|
# vim: set ts=2 sw=2:
|
||||||
|
Loading…
Reference in New Issue
Block a user