20 lines
416 B
YAML
20 lines
416 B
YAML
---
|
|
|
|
- name: MYSQL_USER | Remove all anonymous users
|
|
community.mysql.mysql_user:
|
|
name: ''
|
|
host: "{{ item }}"
|
|
state: absent
|
|
login_unix_socket: "{{ mariadb_socket }}"
|
|
loop:
|
|
- "{{ ansible_hostname }}"
|
|
- 127.0.0.1
|
|
- ::1
|
|
- localhost
|
|
|
|
- name: MYSQL_DB | Remove the test database
|
|
community.mysql.mysql_db:
|
|
name: test
|
|
state: absent
|
|
login_unix_socket: "{{ mariadb_socket }}"
|