use linux socket

This commit is contained in:
Patrick Neff 2022-01-24 19:23:07 +01:00
parent c5e60d80f9
commit 8fd4908542
1 changed files with 3 additions and 0 deletions

View File

@ -8,6 +8,7 @@
- name: Remove unnecessary root accounts.
community.mysql.mysql_user:
login_unix_socket: /var/run/mysqld/mysqld.sock
name: root
host: "{{ item }}"
state: absent
@ -18,6 +19,7 @@
- name: Remove unnecessary anonymous accounts.
community.mysql.mysql_user:
login_unix_socket: /var/run/mysqld/mysqld.sock
name: ""
host: "{{ item }}"
state: absent
@ -28,6 +30,7 @@
- name: Remove test database.
community.mysql.mysql_db:
login_unix_socket: /var/run/mysqld/mysqld.sock
db: tests
state: absent