diff --git a/roles/mysql/tasks/main.yml b/roles/mysql/tasks/main.yml index 60971bf..b657dd4 100644 --- a/roles/mysql/tasks/main.yml +++ b/roles/mysql/tasks/main.yml @@ -19,15 +19,10 @@ - name: Update root password mysql_user: name: root - host: "{{ item }}" + host: localhost password: "{{ mysql_root_password }}" login_user: root login_password: "{{ mysql_root_password }}" check_implicit_admin: yes priv: "*.*:ALL,GRANT" - loop: - - "{{ ansible_hostname }}" - - 127.0.0.1 - - ::1 - - localhost become: true