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
+13-5Lines changed: 13 additions & 5 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`.
@@ -84,10 +91,11 @@ Slow query log settings. Note that the log file will be created by this role, bu
84
91
mysql_table_open_cache: "256"
85
92
[...]
86
93
87
-
The rest of the settings in `defaults/main.yml` control MySQL's memory usage. The default values are tuned for a server where MySQL can consume ~512 MB RAM, so you should consider adjusting them to suit your particular server better.
94
+
The rest of the settings in `defaults/main.yml` control MySQL's memory usage and some other common settings. The default values are tuned for a server where MySQL can consume ~512 MB RAM, so you should consider adjusting them to suit your particular server better.
88
95
89
96
mysql_server_id: "1"
90
97
mysql_max_binlog_size: "100M"
98
+
mysql_binlog_format: "ROW"
91
99
mysql_expire_logs_days: "10"
92
100
mysql_replication_role: ''
93
101
mysql_replication_master: ''
@@ -140,4 +148,4 @@ MIT / BSD
140
148
141
149
## Author Information
142
150
143
-
This role was created in 2014 by [Jeff Geerling](http://jeffgeerling.com/), author of [Ansible for DevOps](http://ansiblefordevops.com/).
151
+
This role was created in 2014 by [Jeff Geerling](http://www.jeffgeerling.com/), author of [Ansible for DevOps](https://www.ansiblefordevops.com/).
0 commit comments