title: Error on ansible playbook: the python mysqldb module is required
body: <p>I'm trying to teach myself ansible by deploying a wordpress instance from a build server to another host server. Both servers are Ubuntu 16.04 and everything works fine until the build gets to running the mysql tasks main.yml file when i get the below error:</p>
  
  <p>"the python mysqldb module is required"</p>
  
  <p>I have included python-mysqldb in my server/tasks/main.yml file so not sure what the error is. Can anyone point me in the right direction please?</p>
  
  <p><strong>mysql/tasks/main.yml</strong></p>
  
  <pre><code>---
  # tasks file for mysql
  - name: Create mysql database
    mysql_db: name={{ wp_mysql_db }} state=present
  
  - name: Create mysql user
    mysql_user:
      name={{ wp_mysql_user }}
      password={{ wp_mysql_password }}
      priv=*.*:ALL
  </code></pre>
  
  <p><strong>server/tasks/main.yml</strong></p>
  
  <pre><code>---
  # tasks file for server
  - name: Update apt cache
    apt: update_cache=yes cache_valid_time=3600
    sudo: yes
  
  - name: Install required software
    apt: name={{ item }} state=present
    sudo: yes
    with_items:
      - apache2
      - python-mysqldb
      - mysql-server
      - mysql-client
      - php7.0
      - php7.0-mysql
      - libapache2-mod-php7.0
      - php7.0-cli
      - php7.0-cgi
      - php7.0-gd
      - php7.0-mcrypt
  </code></pre>
  
  <p>console output error from running: ansible-playbook playbook.yml -i hosts -u jbloggs -K</p>
  
  <pre><code>TASK [mysql : Create mysql database] *******************************************
  task path: /etc/ansible/roles/mysql/tasks/main.yml:3
  fatal: [wordpress1]: FAILED! =&gt; {"changed": false, "failed": true, "msg": "the python mysqldb module is required"}
  </code></pre>