I just noticed, mysql_users is NOT a list, its a dictionary:
user1: { username: user1, password: secret, host: "%", priv:
"*.*:ALL,GRANT", state: present }
would require:
name: "{{ mysql_users[item]['username'] }}"
to use as you expect you would have to define as:
- { username: user1, password: secret, host: "%", priv:
"*.*:ALL,GRANT", state: present }
or
- username: user1
password: secret
....
----------
Brian Coca
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CACVha7cyO%2BrnbiLW7-5V891XbwJ_qZHQ46ihJmt%2BeorgrTwZHQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.