# Mysql problem module

**URL:** <https://forum.ansible.com/t/mysql-problem-module/34295>\
**Category:** Ansible Project\
**Created:** [December 7, 2020, 3:05pm UTC](https://forum.ansible.com/t/mysql-problem-module/34295 "2020-12-07T15:05:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![blue\_fox](https://avatars.discourse-cdn.com/v4/letter/b/8491ac/32.png) [@blue\_fox](https://forum.ansible.com/u/blue_fox)\
**Post date:** [December 7, 2020, 3:05pm UTC](https://forum.ansible.com/t/mysql-problem-module/34295/1 "2020-12-07T15:05:51Z")

</div>

Hello,

I would create a playbook for automate mysql database, but i have a problem

problem:

FAILED! =\> {“ansible\_facts”: {“discovered\_interpreter\_python”: “/usr/bin/python”}, “changed”: false, “msg”: “The PyMySQL (Python 2.7 and Python 3.X) or MySQL-python (Python 2.X) module is required.”}

PS: i install the pymysql module

Thank you

---

<div class="post-metadata">

**Author:** ![racke](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/racke/32/4767_2.png) [@racke](https://forum.ansible.com/u/racke)\
**Post date:** [December 7, 2020, 3:11pm UTC](https://forum.ansible.com/t/mysql-problem-module/34295/2 "2020-12-07T15:11:15Z")

</div>

> Hello,
> 
> I would create a playbook for automate mysql database, but i have a problem
> 
> problem:
> 
> FAILED! =\> {"ansible\_facts": {"discovered\_interpreter\_python": "/usr/bin/python"}, "changed": false, "msg": "The PyMySQL  
> (Python 2.7 and Python 3.X) or MySQL-python (Python 2.X) module is required."}
> 
> PS: i install the pymysql module

What is the target distribution? For modern ones it is recommended to use Python 3 as Ansible interpreter.

Regards  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Racke
