You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
532 B
14 lines
532 B
---
|
|
- include: ubuntu.yml
|
|
when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '16.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: mysql_secure_installation.yml
|
|
when: mysql_secure_installation and mysql_root_password is defined
|
|
|