26 lines
618 B
YAML
26 lines
618 B
YAML
---
|
|
|
|
- name: MYSQL_USER | Remove all anonymous users
|
|
mysql_user:
|
|
name: ''
|
|
host: "{{ item }}"
|
|
state: absent
|
|
login_unix_socket: "{{ mariadb_socket }}"
|
|
check_implicit_admin: yes
|
|
login_user: root
|
|
login_password: "{{ mariadb_root_password | default(omit) }}"
|
|
loop:
|
|
- "{{ ansible_hostname }}"
|
|
- 127.0.0.1
|
|
- ::1
|
|
- localhost
|
|
|
|
- name: MYSQL_DB | Remove the test database
|
|
mysql_db:
|
|
name: test
|
|
state: absent
|
|
login_unix_socket: "{{ mariadb_socket }}"
|
|
check_implicit_admin: yes
|
|
login_user: root
|
|
login_password: "{{ mariadb_root_password | default(omit) }}"
|