mirror of
https://github.com/frappe/bench.git
synced 2024-11-12 00:06:36 +00:00
23 lines
571 B
YAML
23 lines
571 B
YAML
|
---
|
||
|
- name: Install MySQLdb in global env
|
||
|
pip: name=mysql-python version=1.2.5
|
||
|
become: yes
|
||
|
become_method: sudo
|
||
|
|
||
|
- name: Set root Password
|
||
|
mysql_user:
|
||
|
name=root
|
||
|
host={{ item }}
|
||
|
password={{ mysql_root_password }}
|
||
|
state=present
|
||
|
login_user=root
|
||
|
with_items:
|
||
|
- localhost
|
||
|
when: mysql_root_password is defined
|
||
|
|
||
|
- name: Add configuration
|
||
|
template: src={{ mysql_config_template }} dest={{ mysql_conf_dir }}/frappe.cnf owner=root mode=0644
|
||
|
notify: restart mysql
|
||
|
become: yes
|
||
|
become_method: sudo
|
||
|
|