An Ansible role for a Python development setup.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
defaults
handlers
meta
tasks
templates
tests
vars
.gitignore
.travis.yml
Makefile
README.md
Vagrantfile
ansible.cfg
requirements.yml
vagrant.yml

README.md

ansible-role-python-dev Build Status

Installs and configures a Python development environment for a given user using pyenv.

Available on Ansible Galaxy at naftulikay.python-dev.

Requirements

Officially tested operating systems are listed in the Galaxy manifest.

Role Variables

python_user
User to install Python tools for. Required.
python_version
Version of Python to install. Defaults to 2.7.
addtl_python_system_packages
A list of additional system packages to install.
addtl_python_pip_system_packages
A list of additional Python system packages to install via pip.
addtl_python_pip_user_packages
A list of additional Python user packages to install via pip.

Dependencies

None.

Example Playbook

Here are some example playbooks to get started with.

Defaults

Simply get a Python development environment installed:

---
- name: install
  hosts: all
  become: true
  roles:
    - role: python-dev
      python_user: vagrant

Install a Specific Version

Install a specific version of Python:

---
  - name: install
    hosts: all
    become: true
    roles:
      - role: python-dev
        python_user: vagrant
        python_version: '3.5'

License

MIT