mirror of
https://github.com/aljazceru/ansible-role-mysql.git
synced 2025-12-20 21:34:20 +01:00
Merge pull request #8 from darthwade/feature-bind-address
Add mysql_bind_address to configuration.
This commit is contained in:
@@ -40,6 +40,7 @@ The MySQL users and their privileges. A user has the values `name`, `host` (defa
|
||||
(RedHat/CentOS only) If you have enabled any additional repositories (might I suggest geerlingguy.repo-epel or geerlingguy.repo-remi), those repositories can be listed under this variable (e.g. `remi,epel`). This can be handy, as an example, if you want to install later versions of MySQL.
|
||||
|
||||
mysql_port: "3306"
|
||||
mysql_bind_address: '0.0.0.0'
|
||||
mysql_datadir: /var/lib/mysql
|
||||
mysql_socket: /var/lib/mysql/mysql.sock
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ mysql_enablerepo: ""
|
||||
|
||||
# MySQL connection settings.
|
||||
mysql_port: "3306"
|
||||
mysql_bind_address: '0.0.0.0'
|
||||
mysql_datadir: /var/lib/mysql
|
||||
mysql_socket: /var/lib/mysql/mysql.sock
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ socket = {{ mysql_socket }}
|
||||
|
||||
[mysqld]
|
||||
port = {{ mysql_port }}
|
||||
bind-address = {{ mysql_bind_address }}
|
||||
datadir = {{ mysql_datadir }}
|
||||
socket = {{ mysql_socket }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user