Commit 3ca2f8ba by Kevin Falcone

Allow this to be run -c local so you don't need sudo or /usr/bin/python

parent e73eca30
# #
# Requires MySQL-python be installed for system python
# This play will create databases and user for an application. # This play will create databases and user for an application.
# It can be run like so: # It can be run like so:
# #
# ansible-playbook -i 'localhost,' create_analytics_reports_dbs.yml -e@./db.yml # ansible-playbook -c local -i 'localhost,' create_analytics_reports_dbs.yml -e@./db.yml
# #
# where the content of dbs.yml contains the following dictionaries # where the content of dbs.yml contains the following dictionaries
# #
...@@ -50,7 +49,6 @@ ...@@ -50,7 +49,6 @@
# to system python. # to system python.
- name: install python mysqldb module - name: install python mysqldb module
pip: name={{item}} state=present pip: name={{item}} state=present
sudo: yes
with_items: with_items:
- MySQL-python - MySQL-python
......
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