From 3a584c109adb5e36005ef9d8428641df4d7dfc78 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 6 Feb 2025 19:45:19 +0100 Subject: [PATCH] Another attempt on fixing the mysql_user idempotency. --- tasks/configure_root_access.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tasks/configure_root_access.yml b/tasks/configure_root_access.yml index d48f2ca..9cfcf3d 100644 --- a/tasks/configure_root_access.yml +++ b/tasks/configure_root_access.yml @@ -7,11 +7,11 @@ password: "{{ mysql_root_password }}" login_unix_socket: "{{ mysql_socket }}" when: mysql_root_password is defined - with_items: - - localhost + loop: - 127.0.0.1 - ::1 - '{{ ansible_hostname }}' + - localhost ignore_errors: true tags: ['mysql', 'mysql_root'] @@ -22,11 +22,11 @@ password: "" login_unix_socket: "{{ mysql_socket }}" when: mysql_root_password is not defined - with_items: - - localhost + loop: - 127.0.0.1 - ::1 - '{{ ansible_hostname }}' + - localhost ignore_errors: true tags: ['mysql', 'mysql_root']