Hello together,
I do have a problem with the mysql_user module.
It does create my user with the provided password, but it does not create the permissions I do pass.
Here is my call:
- name: Create User with single database privilieges
mysql_user: name="ttr"
host=localhost
password=testPass
priv="tinytinyrss.*:USAGE"
state=present
When I then log into MySQL and view allowed databases:
[root@munin ~]# mysql -u ttr -ptestPass
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 60
Server version: 5.5.40-MariaDB MariaDB Server
Copyright (c) 2000, 2014, Oracle, Monty Program Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> SHOW DATABASES;
+--------------------+
| Database |
+--------------------+
| information_schema |
+--------------------+
1 row in set (0.00 sec)
I tried with different versions of quoting, but none of these helped. The Database tinytinyrss does exist, was successfully created the ansible task before.
My Ansible Version is 1.8.2
Regards
Dirk