I am sorry for spamming like this but just got into my mind to try 
something:

- name: grant privileges on databases
  raw: mysql -e "grant all privileges on {{ item.1 }}.* to {{ 
item.0.user}}@localhost"
  with_subelements:
      - users
      - db
this task works as expected, and I beleive this might be a bug in 
mysql_user module.


On Wednesday, April 2, 2014 1:09:32 PM UTC+2, Marko Lisica wrote:
>
> Hello,
>
> I have a task that reads user and db and grants permisions on specific db 
> for specific user.
>
> https://gist.github.com/markotitel/9931850
>
> Problem is that only last DB from list is granted for specific user.
>
> I have same task with same vars for folder creation and it works fine.
>
> https://gist.github.com/markotitel/9931867
>
> What am I doing wrong?
>

-- 
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/e6fee44a-53e4-46e8-838a-88852aafd6c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to