Hi,
im trying to add a mysql user, but it seems the mysql_user module does not 
translate the variables. It works on mysql_db tho.

Output:

<178.250.***.***> REMOTE_MODULE mysql_user name={{ item.value.projekt | 
lower }}_{{ item.key }}_{{ stage }} password=VALUE_HIDDEN 
item.value.password }} host=localhost login_host={{ ansible.fqdn }} 
priv=*.*:ALL state=present
[...]
msg: this module requires key=value arguments (['name={#', 
'item.value.projekt', '|', 'lower', '#}_{#', 'item.key', '#}_{#', 'stage', 
'#}', 'password={#', 'item.value.password', '#}', 'host=localhost', 
'login_host={#', 'ansible.fqdn', '#}', 'priv=*.*:ALL', 'state=present'])


Task:
    - name: Create MySQL Database User
      mysql_user: name={{ item.value.projekt | lower }}_{{ item.key }}_{{ 
stage }} password={{ item.value.password }} host=localhost login_host={{ 
ansible.fqdn }} priv=*.*:ALL state=present
      with_dict: "{{webpaket}}"


Any guess?

Regards
Florian Luettgens

-- 
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/05362cda-1485-4cec-87f6-cbc905d818b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to