2015-07-12 15:42:46 +07:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: MYSQL_USER | Update mysql root password for all root accounts
|
2018-03-18 00:28:56 +07:00
|
|
|
mysql_user:
|
|
|
|
name: root
|
|
|
|
host: "{{ item }}"
|
|
|
|
password: "{{ mariadb_root_password }}"
|
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_USER | Remove all anonymous users
|
2018-03-18 00:28:56 +07:00
|
|
|
mysql_user:
|
|
|
|
name: ''
|
|
|
|
host: "{{ item }}"
|
|
|
|
state: absent
|
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
|
2018-03-18 00:28:56 +07:00
|
|
|
mysql_db:
|
|
|
|
name: test
|
|
|
|
state: absent
|