I just wanted to add a user to our database with REPLICATION SLAVE privileges. The Ansible module docs suggest that would do this:
mysql_user: user="replication_user" host="%" password="longpass" priv=*.*:REPLICATION SLAVE
However you get an error messages saying “this module requires key=value arguments”. The error was caused by the space between REPLICATION and SLAVE. The answer is to put the privilege in quotes:
mysql_user: user="replication_user" host="%" password="longpass" priv=*.*:"REPLICATION SLAVE"
Hope this helps someone.