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:
Jérémy Lecour 2016-10-17 09:37:08 +02:00 committed by Jérémy Lecour
parent aa988a32bd
commit d510f8aee8

View file

@ -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