I wrote a miscellaneous Ansible module that enables Virtualenv to be used by installing Pythonz.

ansible-roles/roles/pythonz at master ยท shrkw/ansible-roles

The contents to be executed are as follows.

I will not create the environment of Virtualenv, so log in and create it with any option.

virtualenv -p /usr/local/pythonz/pythons/CPython-2.7.8/bin/python ~/.virtualenvs/CP278
source ~/.virtualenvs/CP278/bin/activate

Shortcut Usage

Since the playbook.yml file is placed, you can use it as a shortcut to execute the module. Create a file with the name hosts like this,

hosts


[target]
127.0.0.1 ansible_ssh_port=2200 ansible_ssh_user=vagrant ansible_ssh_private_key_file=/Users/shrkw/.vagrant.d/insecure_private_key

If you execute it like this, it's OK.

ansible-playbook -i hosts playbook.yml

Recommended Posts

I wrote a miscellaneous Ansible module that enables Virtualenv to be used by installing Pythonz.
How to install a Python library that can be used by pharmaceutical companies
I want Sphinx to be convenient and used by everyone
I wrote a tri-tree that can be used for high-speed dictionary implementation in D language and Python.
I created a template for a Python project that can be used universally
I wanted to quickly create a mail server that can be used freely with postfix + dovecot on EC2
I want to create a priority queue that can be updated in Python (2.7)
I tried to summarize the operations that are likely to be used with numpy-stl
I wrote a PyPI module that extends the parameter style in Python's sqlite3 module
I made a familiar function that can be used in statistics with Python
I wrote a script to revive the gulp watch that will die soon
I made a module in C language to filter images loaded by Python
"Gazpacho", a scraping module that can be used more easily than Beautiful Soup
I tried installing a driver for a NIC that is not recognized by Linux
A memo that I wrote a quicksort in Python
I wrote a script to upload a WordPress plugin
Convert images from FlyCapture SDK to a form that can be used with openCV
I uploaded a module to pypl that deletes Japanese stop words, so share it
I made a system that allows you to tweet just by making a phone call
I tried to make a memo app that can be pomodoro, but a reflection record
How to create a property of relations that can be prefetch_related by specific conditions
I made a tool to automatically generate a state transition diagram that can be used for both web development and application development
I wrote a class that makes it easier to divide by specifying part of speech when using Mecab in python