From db412066b3a3fdab07ba29cbaa9c2684f99d9060 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sat, 13 Feb 2021 13:10:44 +0200 Subject: [PATCH] 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. --- roles/mariadb/tasks/main.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/roles/mariadb/tasks/main.yml b/roles/mariadb/tasks/main.yml index 71b0a0f..5619d5a 100644 --- a/roles/mariadb/tasks/main.yml +++ b/roles/mariadb/tasks/main.yml @@ -34,10 +34,8 @@ - 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 }} loop: - - "{{ inventory_hostname }}" - 127.0.0.1 - ::1 - - localhost tags: mariadb - name: Create .my.conf file with root credentials