mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2025-01-10 11:50:18 +01:00
12 lines
334 B
YAML
12 lines
334 B
YAML
---
|
|
- name: Copy my.cnf global MySQL configuration.
|
|
template:
|
|
src: my.cnf.j2
|
|
dest: "{{ mysql_config_file }}"
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
notify: restart mysql
|
|
|
|
- name: Ensure MySQL is started and enabled on boot.
|
|
service: "name={{ mysql_daemon }} state=started enabled={{ mysql_enabled_on_startup }}"
|