Commit 1088fbc8 by e0d

using pip to install mysql lib

parent 4d8db75a
#
# Requires MySQL-python be installed for system python
#
- name: Create analtyics reports db
hosts: all
connection: local
gather_facts: False
tasks:
# Install required library
#- name: install python mysqldb module
# apt: pkg={{item}} install_recommends=no state=present update_cache=yes
# sudo: yes
# with_items:
# - python-mysqldb
- name: install python mysqldb module
pip: name={{item}} state=present
sudo: yes
with_items:
- MySQL-python
- name: create mysql databases for the analytics report API
mysql_db: >
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment