# mysql\_db does not "see" MySQL-python module

**URL:** <https://forum.ansible.com/t/mysql-db-does-not-see-mysql-python-module/28497>\
**Category:** Ansible Project\
**Created:** [September 4, 2018, 8:00pm UTC](https://forum.ansible.com/t/mysql-db-does-not-see-mysql-python-module/28497 "2018-09-04T20:00:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Barry\_Kaplan](https://avatars.discourse-cdn.com/v4/letter/b/48db29/32.png) [@Barry\_Kaplan](https://forum.ansible.com/u/Barry_Kaplan)\
**Post date:** [September 4, 2018, 8:00pm UTC](https://forum.ansible.com/t/mysql-db-does-not-see-mysql-python-module/28497/1 "2018-09-04T20:00:25Z")

</div>

I have

`  
tasks:

- name: Install the Python MySQLB module  
pip: name=mysql-python

- name: Create grafana database  
tags: [mysql]  
mysql\_db:  
state: present  
name: “{{ vault\_grafana\_db\_name }}”  
login\_host: “{{ data\_rds\_mysql\_host }}”  
login\_user: “{{ data\_rds\_username }}”  
login\_password: “{{ data\_rds\_password }}”  
`

But when running

`  
TASK [Install the Python MySQLB module] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
ok: [localhost]

TASK [Create grafana database] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
fatal: [localhost]: FAILED! =\> {“changed”: false, “msg”: “The MySQL-python module is required.”}  
to retry, use: --limit @/Users/bkaplan/.ansible/retry-files/deploy-grafana.retry  
`

What can cause this?
