ansible/ansible — pull request #4352 by jhoekx (2013-10-03 11:15:55+00:00)
Title: Add grant parameter to MySQL user module

The priv parameter sets the absolute privileges of a user. It can not be used to grant additional privileges to a user. The grant option added here allows exactly that.

The example in the documentation:

```
- name: give users access to multiple databases
mysql_user: name={{ item[0] }} priv={{ item[1] }}.*:ALL password=foo
with_nested:
- [ 'alice', 'bob', 'eve' ]
- [ 'clientdb', 'employeedb', 'providerdb' ]
```

Doesn't actually work. Instead it grants only permissions on providerdb. By changing `priv` to `grant` it does work.