Skip to content

Commit b1059e2

Browse files
committed
Switch to mysql community
1 parent 7b3be25 commit b1059e2

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

roles/cs.mysql/tasks/flavor/mysql.yml

+12-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
- name: Install mysql-server
22
dnf:
3-
name: mysql-server
3+
name: mysql-community-server
44
state: present
55
register: mysql_install
66

7-
- name: Initialize mysql
8-
shell: "mysqld --initialize-insecure --user=mysql --datadir=/var/lib/mysql"
9-
when: mysql_install is changed
7+
- name: Ensure files exists with correct permissions
8+
file:
9+
path: "{{ item }}"
10+
state: touch
11+
owner: mysql
12+
group: mysql
13+
mode: '0640'
14+
loop:
15+
- /var/log/mysqld.err
16+
- /var/log/mysqld.log
17+
- /var/log/mysqld-slow.log
1018

1119
- name: Execute upstream mysql role
1220
import_role:

0 commit comments

Comments
 (0)