You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-3Lines changed: 10 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,11 @@ Whether to force update the MySQL root user's password. By default, this role wi
35
35
36
36
Whether MySQL should be enabled on startup.
37
37
38
+
mysql_config_file: *default value depends on OS*
39
+
mysql_config_include_dir: *default value depends on OS*
40
+
41
+
The main my.cnf configuration file and include directory.
42
+
38
43
overwrite_global_mycnf: yes
39
44
40
45
Whether the global my.cnf should be overwritten each time this role is run. Setting this to `no` tells Ansible to only create the `my.cnf` file if it doesn't exist. This should be left at its default value (`yes`) if you'd like to use this role's variables to configure MySQL.
@@ -64,17 +69,19 @@ The MySQL users and their privileges. A user has the values `name`, `host` (defa
64
69
mysql_port: "3306"
65
70
mysql_bind_address: '0.0.0.0'
66
71
mysql_datadir: /var/lib/mysql
72
+
mysql_socket: *default value depends on OS*
73
+
mysql_pid_file: *default value depends on OS*
67
74
68
75
Default MySQL connection configuration.
69
76
70
77
mysql_log: ""
71
-
mysql_log_error: /var/log/mysqld.log
72
-
mysql_syslog_tag: mysqld
78
+
mysql_log_error: *default value depends on OS*
79
+
mysql_syslog_tag: *default value depends on OS*
73
80
74
81
MySQL logging configuration. Setting `mysql_log` (the general query log) or `mysql_log_error` to `syslog` will make MySQL log to syslog using the `mysql_syslog_tag`.
mysql_slow_query_log_file: *default value depends on OS*
78
85
mysql_slow_query_time: 2
79
86
80
87
Slow query log settings. Note that the log file will be created by this role, but if you're running on a server with SELinux or AppArmor, you may need to add this path to the allowed paths for MySQL, or disable the mysql profile. For example, on Debian/Ubuntu, you can run `sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/usr.sbin.mysqld && sudo service apparmor restart`.
0 commit comments