Skip to content

Commit a7cdfef

Browse files
committed
Fix problems with new CentOS 7 MariaDB fixes.
1 parent b8ee93b commit a7cdfef

File tree

3 files changed

+6
-18
lines changed

3 files changed

+6
-18
lines changed

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,9 @@ Replication settings. Set `mysql_server_id` and `mysql_replication_role` by serv
9999

100100
This role works with either MySQL or a compatible version of MariaDB. On RHEL/CentOS 7+, the mariadb database engine was substituted as the default MySQL replacement package. No modifications are necessary though all of the variables still reference 'mysql' instead of mariadb.
101101

102+
#### Ubuntu 14.04 and 16.04 MariaDB configuration
102103

103-
#### Ubuntu 14.04 MariaDB configuration
104-
105-
On Ubuntu, the package names are named differently, so the `mysql_package` variabl needs to be altered
106-
107-
Set the following variables (at a minimum):
104+
On Ubuntu, the package names are named differently, so the `mysql_package` variable needs to be altered. Set the following variables (at a minimum):
108105

109106
mysql_packages:
110107
- mariadb-client

tasks/configure.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@
4040
owner: mysql
4141
group: mysql
4242
mode: 0755
43-
44-
- name: Set selinux context on datadir
45-
file:
46-
path: "{{ mysql_datadir }}"
4743
setype: mysqld_db_t
4844

4945
- name: Set ownership on slow query log file (if configured).

tasks/main.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,12 @@
22
# Include variables and define needed variables.
33
- name: Include OS-specific variables.
44
include_vars: "{{ ansible_os_family }}.yml"
5-
when: ansible_os_family != "RedHat"
5+
when: ansible_os_family != "RedHat"
66

7-
# Include RedHat 6 variables (mysql)
8-
- name: Include OS-specific variables.
9-
include_vars: "{{ ansible_os_family }}-{{ ansible_lsb.major_release }}.yml"
10-
when: ansible_lsb.major_release < "7"
11-
12-
# Include RedHat 7 variables (mariadb)
13-
- name: Include OS-specific variables.
7+
# Include version-specific variables for RedHat.
8+
- name: Include OS-specific variables (RedHat).
149
include_vars: "{{ ansible_os_family }}-{{ ansible_lsb.major_release }}.yml"
15-
when: ansible_os_family >= "7"
10+
when: ansible_os_family == "RedHat"
1611

1712
- name: Define mysql_packages.
1813
set_fact:

0 commit comments

Comments
 (0)