mirror of
https://github.com/frappe/bench.git
synced 2025-01-11 01:32:07 +00:00
c7062e1b38
- bumped up ansible from 2.3.1 to 2.4.1 - renamed include to include_tasks since it has been deprecated in ansible 2.4
19 lines
701 B
YAML
19 lines
701 B
YAML
---
|
|
- include_tasks: centos.yml
|
|
when: ansible_distribution == 'CentOS' and ansible_distribution_major_version|int >= 6
|
|
|
|
- include_tasks: ubuntu.yml
|
|
when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '14.04'
|
|
|
|
- name: Add configuration
|
|
template: src={{ mysql_conf_tpl }} dest={{ mysql_conf_dir[ansible_distribution] }}/{{ mysql_conf_file }} owner=root group=root mode=0644
|
|
when: mysql_conf_tpl != 'change_me'
|
|
notify: restart mysql
|
|
|
|
- name: Start and enable service
|
|
service: name=mysql state=started enabled=yes
|
|
|
|
- include_tasks: mysql_secure_installation.yml
|
|
debug: var=mysql_secure_installation
|
|
when: mysql_secure_installation and mysql_root_password is defined
|