Hello,
How come I cannot do the following? I get the following error when I run
the play. Is there a better way to do this? Please note the group vars file
has been added to the main yml file as a reference.
- mysql_user: login_host={{ inventory_hostname }} login_port={{ database_
port }} login_user={{ database_admin }} login_password={{ database_admin_
pass }} name={{ item.value.username }} password={{ item.value.password }}
priv={{ item.value.privileges }} host="%" state=present with_dict: "rdsusers{{
env }}"
FAILED! => {"failed": true, "msg": "ERROR! with_dict expects a dict"}
Thanks
--
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/1051c602-ed22-4840-9658-2b9d2164782a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.