mirror of
https://github.com/aljazceru/ansible-role-mysql.git
synced 2025-12-24 09:24:25 +01:00
14 lines
376 B
YAML
14 lines
376 B
YAML
---
|
|
- name: Copy my.cnf global MySQL configuration.
|
|
template:
|
|
src: my.cnf.j2
|
|
dest: "{{ mysql_config_file }}"
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
force: "{{ overwrite_global_mycnf }}"
|
|
notify: restart mysql
|
|
|
|
- name: Ensure MySQL is started and enabled on boot.
|
|
service: "name={{ mysql_daemon }} state=started enabled={{ mysql_enabled_on_startup }}"
|