# Problem Launch Ansible Module MySQL

**URL:** <https://forum.ansible.com/t/problem-launch-ansible-module-mysql/26082>\
**Category:** AWX Project\
**Created:** [November 20, 2017, 3:47pm UTC](https://forum.ansible.com/t/problem-launch-ansible-module-mysql/26082 "2017-11-20T15:47:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Antonio\_Jimenez\_Rami](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@Antonio\_Jimenez\_Rami](https://forum.ansible.com/u/Antonio_Jimenez_Rami)\
**Post date:** [November 20, 2017, 3:47pm UTC](https://forum.ansible.com/t/problem-launch-ansible-module-mysql/26082/1 "2017-11-20T15:47:22Z")

</div>

Hi,

i have this problem with execute one playbook from mysql:

fatal: [localhost]: FAILED! =\> {“changed”: false, “failed”: true, “msg”: “The MySQL-python module is required.”}

But, the MySQL-python is installed to the hosts.

Regards,

---

<div class="post-metadata">

**Author:** ![matburt](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/matburt/32/3612_2.png) [@matburt](https://forum.ansible.com/u/matburt)\
**Post date:** [November 21, 2017, 11:48am UTC](https://forum.ansible.com/t/problem-launch-ansible-module-mysql/26082/2 "2017-11-21T11:48:37Z")

</div>

The mysql module needs to be installed in the awx image also.

---

<div class="post-metadata">

**Author:** ![Antonio\_Jimenez\_Rami](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@Antonio\_Jimenez\_Rami](https://forum.ansible.com/u/Antonio_Jimenez_Rami)\
**Post date:** [November 21, 2017, 11:52am UTC](https://forum.ansible.com/t/problem-launch-ansible-module-mysql/26082/3 "2017-11-21T11:52:06Z")

</div>

How can I do this action? Because I have it installed on the hosts where the container is

---

<div class="post-metadata">

**Author:** ![matburt](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/matburt/32/3612_2.png) [@matburt](https://forum.ansible.com/u/matburt)\
**Post date:** [November 21, 2017, 12:35pm UTC](https://forum.ansible.com/t/problem-launch-ansible-module-mysql/26082/4 "2017-11-21T12:35:52Z")

</div>

You’ll need to add it to the container image itself… either by connecting to awx\_task and awx\_web and installing it directly or adding it to our requirement file and rebuilding the images.

We’re working on a way to make this a little easier.

---

<div class="post-metadata">

**Author:** ![Antonio\_Jimenez\_Rami](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@Antonio\_Jimenez\_Rami](https://forum.ansible.com/u/Antonio_Jimenez_Rami)\
**Post date:** [November 21, 2017, 12:58pm UTC](https://forum.ansible.com/t/problem-launch-ansible-module-mysql/26082/5 "2017-11-21T12:58:01Z")

</div>

Thanks very much!

---

<div class="post-metadata">

**Author:** ![Jason\_Schwanz](https://avatars.discourse-cdn.com/v4/letter/j/ecccb3/32.png) [@Jason\_Schwanz](https://forum.ansible.com/u/Jason_Schwanz)\
**Post date:** [March 2, 2018, 7:08pm UTC](https://forum.ansible.com/t/problem-launch-ansible-module-mysql/26082/6 "2018-03-02T19:08:59Z")

</div>

I ran into this today on 1.0.4.14. It’s a bit of a head scratcher that a standard module is not usable unless you do some custom modifications to the official AWX Docker images.

---

<div class="post-metadata">

**Author:** ![matburt](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/matburt/32/3612_2.png) [@matburt](https://forum.ansible.com/u/matburt)\
**Post date:** [March 2, 2018, 7:52pm UTC](https://forum.ansible.com/t/problem-launch-ansible-module-mysql/26082/7 "2018-03-02T19:52:57Z")

</div>

There are _a lot_ of modules and we can’t ship the dependencies for all of them. Some modules even conflict with each other. We’re looking at ways to support loading dependencies without needing to pre-bake the container image.
