roles/mariadb: Only create users on 127.0.0.1 and ::1

A few months ago I disabled hostname lookups so only IP addresses
work now anyways.
This commit is contained in:
Alan Orth 2021-02-13 13:10:44 +02:00
parent 63a836e2a7
commit db412066b3
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -34,10 +34,8 @@
- name: Update MariaDB root password for all root accounts - name: Update MariaDB root password for all root accounts
mysql_user: name=root host={{ item }} password={{ mariadb_root_password }} login_unix_socket={{ mariadb_login_unix_socket }} mysql_user: name=root host={{ item }} password={{ mariadb_root_password }} login_unix_socket={{ mariadb_login_unix_socket }}
loop: loop:
- "{{ inventory_hostname }}"
- 127.0.0.1 - 127.0.0.1
- ::1 - ::1
- localhost
tags: mariadb tags: mariadb
- name: Create .my.conf file with root credentials - name: Create .my.conf file with root credentials