blob: 28674cfde12103893c8536fef3598ca1b2177e23 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
---
- name: set mysql root password
mysql_user:
login_user: root
login_password: "{{ mysql_root_password }}"
user: root
password: "{{ mysql_root_password }}"
host: localhost
- name: delete anonymous MySQL server user
mysql_user:
login_user: root
login_password: "{{ mysql_root_password }}"
user: ""
state: absent
- name: remove the MySQL test database
mysql_db:
login_user: root
login_password: "{{ mysql_root_password }}"
db: test
state: absent
|