roles/mariadb: Disable name lookups
Add skip-name-resolve=1 to disable lookups of hostnames to IPs. We need to make sure all accounts are using IPs like 127.0.0.1 instead of "localhost" now.
This commit is contained in:
parent
57a83cef26
commit
ebf4a4c2ac
@ -51,7 +51,7 @@
|
||||
tags: mariadb
|
||||
|
||||
- name: Create MariaDB user(s)
|
||||
mysql_user: name={{ item.user }} password={{ item.pass }} priv={{ item.name }}.*:ALL state=present
|
||||
mysql_user: name={{ item.user }} password={{ item.pass }} priv={{ item.name }}.*:ALL host=127.0.0.1 state=present
|
||||
loop: "{{ mariadb_databases }}"
|
||||
when: mariadb_databases is defined
|
||||
tags: mariadb
|
||||
|
@ -47,6 +47,10 @@ skip-external-locking
|
||||
# Instead of skip-networking the default is now to listen only on
|
||||
# localhost which is more compatible and is not less secure.
|
||||
bind-address = 127.0.0.1
|
||||
|
||||
# don't resolve connection IPs to hostnames (make sure user accounts are using
|
||||
# IPs instead of "localhost")
|
||||
skip-name-resolve=1
|
||||
#
|
||||
# * Fine Tuning
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user