When running mysql_user module in ansible it is showing the below error.
ansible version - 2.6
mysql version - 5.6
yaml syntax :-
- name: Test | mysql
mysql_user: name=test password=test host=localhost state=present
error :-
fatal: [94.130.87.130]: FAILED! => {
"changed": false,
"module_stderr": "Shared connection to 94.130.87.130 closed.\r\n",
"module_stdout": "Traceback (most recent call last):\r\n File \"/tmp/ansible_73s74m/ansible_module_mysql_user.py\", line 206, in <module>\r\n from ansible.module_utils.basic import AnsibleModule\r\nzlib.error: Error -2 while preparing to decompress data: inconsistent stream state\r\n",
"msg": "MODULE FAILURE",
"rc": 1
}