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
|
2015-05-12 23:30:39 -04:00
|
|
|
when: rookeries_db.setup_db
|
2014-11-18 08:24:39 -05:00
|
|
|
|
2015-01-08 18:22:39 -05:00
|
|
|
- name: setup MySQL databases for rookeries.
|
2015-05-12 23:48:10 -04:00
|
|
|
mysql_db: name={{ rookeries_db.db_name }} state=present login_host={{ rookeries_db.host }}
|
|
|
|
login_port={{ rookeries_db.port }}
|
2015-05-12 23:30:39 -04:00
|
|
|
when: rookeries_db.setup_db
|
2014-11-18 08:24:39 -05:00
|
|
|
|
2015-01-08 18:22:39 -05:00
|
|
|
- name: add MySQL database users for rookeries.
|
2015-03-13 08:36:13 -04:00
|
|
|
mysql_user: name={{ rookeries_db.username }} password={{ rookeries_db.password }} priv={{ rookeries_db.db_name }}:ALL
|
2015-05-12 23:48:10 -04:00
|
|
|
login_host={{ rookeries_db.host }} login_port={{ rookeries_db.port }}
|
2015-05-12 23:30:39 -04:00
|
|
|
when: rookeries_db.setup_db
|