2014-11-18 08:24:39 -05:00
|
|
|
---
|
2015-01-08 18:22:39 -05:00
|
|
|
- name: setup MySQL server + Python dependencies
|
|
|
|
apt: pkg={{ item }} state=present
|
|
|
|
with_items:
|
|
|
|
- mysql-server
|
|
|
|
- python-mysqldb
|
2014-11-18 08:24:39 -05:00
|
|
|
|
2015-01-08 18:22:39 -05:00
|
|
|
- name: setup MySQL databases for rookeries.
|
|
|
|
mysql_db: name={{ item.key }} state=present
|
|
|
|
with_dict: databases
|
2014-11-18 08:24:39 -05:00
|
|
|
|
2015-01-08 18:22:39 -05:00
|
|
|
- name: add MySQL database users for rookeries.
|
|
|
|
mysql_user: name={{ item.value.username }} password={{ item.value.password }} priv={{ item.key }}:ALL
|
|
|
|
with_dict: databases
|