ansible-mysql/tasks/secure.yml

20 lines
416 B
YAML
Raw Permalink Normal View History

2015-07-12 15:42:46 +07:00
---
- name: MYSQL_USER | Remove all anonymous users
2024-08-26 15:12:09 +07:00
community.mysql.mysql_user:
2018-03-18 00:28:56 +07:00
name: ''
host: "{{ item }}"
state: absent
2022-03-04 16:56:27 +07:00
login_unix_socket: "{{ mariadb_socket }}"
2019-04-12 14:38:42 +07:00
loop:
2015-07-12 15:42:46 +07:00
- "{{ ansible_hostname }}"
- 127.0.0.1
- ::1
- localhost
- name: MYSQL_DB | Remove the test database
2024-08-26 15:12:09 +07:00
community.mysql.mysql_db:
2018-03-18 00:28:56 +07:00
name: test
state: absent
2022-03-04 16:56:27 +07:00
login_unix_socket: "{{ mariadb_socket }}"