Merge branch 'master' of git://github.com/dsglaser/ansible-role-mysql into dglaser-master

This commit is contained in:
Jeff Geerling
2016-04-29 13:39:26 -04:00
5 changed files with 42 additions and 15 deletions

View File

@@ -33,6 +33,19 @@
shell: "touch {{ mysql_slow_query_log_file }} creates={{ mysql_slow_query_log_file }}"
when: mysql_slow_query_log_enabled
- name: Create datadir if it does not exist
file:
path: "{{ mysql_datadir }}"
state: directory
owner: mysql
group: mysql
mode: 0755
- name: Set selinux context on datadir
file:
path: "{{ mysql_datadir }}"
setype: mysqld_db_t
- name: Set ownership on slow query log file (if configured).
file:
path: "{{ mysql_slow_query_log_file }}"

View File

@@ -2,6 +2,17 @@
# Include variables and define needed variables.
- name: Include OS-specific variables.
include_vars: "{{ ansible_os_family }}.yml"
when: ansible_os_family != "RedHat"
# Include RedHat 6 variables (mysql)
- name: Include OS-specific variables.
include_vars: "{{ ansible_os_family }}-{{ ansible_lsb.major_release }}.yml"
when: ansible_lsb.major_release < "7"
# Include RedHat 7 variables (mariadb)
- name: Include OS-specific variables.
include_vars: "{{ ansible_os_family }}-{{ ansible_lsb.major_release }}.yml"
when: ansible_os_family >= "7"
- name: Define mysql_packages.
set_fact: