Fixes #63: Running role on Ubuntu 15/16.04 fails.

This commit is contained in:
Jeff Geerling
2016-04-22 13:38:19 -05:00
parent 9b3c7c8a0a
commit ab21fa133f
3 changed files with 13 additions and 8 deletions

View File

@@ -42,6 +42,19 @@
mode: 0644
when: mysql_slow_query_log_enabled
- name: Create error log file (if configured).
shell: "touch {{ mysql_log_error }} creates={{ mysql_log_error }}"
when: mysql_log == "" and mysql_log_error != ""
- name: Set ownership on error log file (if configured).
file:
path: "{{ mysql_log_error }}"
state: file
owner: mysql
group: mysql
mode: 0644
when: mysql_slow_query_log_enabled
- name: Ensure MySQL is started and enabled on boot.
service: "name={{ mysql_daemon }} state=started enabled={{ mysql_enabled_on_startup }}"
register: mysql_service_configuration