Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2014
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. - name: Install Python Scientific Computing Packages
  2. yum: name={{ item }} state=latest
  3. with_items:
  4. - python-matplotlib
  5. - python-pandas
  6. - numpy
  7. - scipy
  8. - gcc
  9. - python-pip
  10. - libaio
  11. - oracle-instantclient11.2-basic
  12. - oracle-instantclient11.2-sqlplus
  13. - oracle-instantclient11.2-devel
  14.  
  15. - name: Set ORACLE_HOME
  16. shell: "echo export ORACLE_HOME=/usr/lib/oracle/11.2/client64 >> ~/.bash_profile"
  17. - name: Add to PATH
  18. shell: "echo export PATH=$PATH:/usr/lib/oracle/11.2/client64/bin >> ~/.bash_profile"
  19. - name: Set LD_LIBRARY_PATH
  20. shell: "echo export LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client64/lib >> ~/.bash_profile"
  21. - name: Reload bash profile
  22. shell: "source ~/.bash_profile"
  23. - name: Set up lib sources
  24. shell: "echo /lib > /etc/ld.so.conf.d/oracle-instantclient-11.2.so.conf"
  25. - name: Set up lib sources
  26. shell: "echo /usr/lib/oracle/11.2/client64/lib >> /etc/ld.so.conf.d/oracle-instantclient-11.2.so.conf"
  27. - name: Rerun ldconfig
  28. shell: "ldconfig -v"
  29.  
  30. # Install cx_Oracle Python package
  31. - pip: name=cx_Oracle
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement