Mysql: all hosts must be removed manually
Until Ansible 2.1 we have to loop over all hosts when deleting the root user
This commit is contained in:
parent
aa988a32bd
commit
d510f8aee8
|
@ -44,7 +44,13 @@
|
|||
- name: remove root user
|
||||
mysql_user:
|
||||
name: root
|
||||
host: "{{ item }}"
|
||||
config_file: /root/.my.cnf
|
||||
state: absent
|
||||
with_items:
|
||||
- "localhost"
|
||||
- "127.0.0.1"
|
||||
- "::1"
|
||||
- "{{ ansible_hostname }}"
|
||||
tags:
|
||||
- mysql
|
||||
|
|
Loading…
Reference in a new issue