2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-23 20:49:01 +00:00
bench/playbooks/develop/includes/setup_mariadb.yml

18 lines
443 B
YAML
Raw Normal View History

2016-03-15 06:54:17 +00:00
---
- name: Set root Password
2016-03-17 07:29:44 +00:00
mysql_user:
name=root
host={{ item }}
password={{ mysql_root_password }}
2016-03-15 06:54:17 +00:00
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