ansible-role-apache/tasks/configure.yml

14 lines
376 B
YAML
Raw Normal View History

2014-11-08 22:10:49 +01:00
---
- name: Copy my.cnf global MySQL configuration.
template:
src: my.cnf.j2
dest: "{{ mysql_config_file }}"
2014-11-08 22:10:49 +01:00
owner: root
group: root
mode: 0644
2015-04-10 15:20:00 +02:00
force: "{{ overwrite_global_mycnf }}"
2014-11-08 22:10:49 +01:00
notify: restart mysql
- name: Ensure MySQL is started and enabled on boot.
service: "name={{ mysql_daemon }} state=started enabled={{ mysql_enabled_on_startup }}"