Version: | 0.2.2 |
---|---|
Web: | https://github.com/equipindustry/ansible-role-python |
Download: | http://github.com/equipindustry/ansible-role-python |
Source: | http://github.com/equipindustry/ansible-role-python |
Keywords: | ansible-role-python |
Table of Contents:
Ansible Galaxy role for Python.
List of applications:
Install it with the following command:
$ ansible-galaxy install equipindustry.python
The default role variables in defaults/main.yml
are:
python_pyenv_path: "{{ ansible_env.HOME }}/pyenv"
python_pyenv_owner: "{{ ansible_env.USER }}"
python_pyenv_python_versions: ["3.6.0"]
python_pyenv_delete_virtualenvs: [{ venv_name: "latest" }]
python_pyenv_virtualenvs: [{ venv_name: "latest", py_version: "3.6.0" }]
python_pyenv_update_git_install: no
- Deploy code
- role: equipindustry.python
python_pyenv_install: no
python_pyenv_update_git_install: no
None
See the examples directory.
To run this playbook with default settings, create a basic playbook like this:
- hosts: servers
roles:
- equipindustry.python
To install a specific version:
- hosts: servers
roles:
- { role: equipindustry.python }
- hosts: servers
roles:
- role: equipindustry.python
python_pyenv_path: "{{ home }}/pyenv"
python_pyenv_owner: "{{ instance_owner }}"
python_pyenv_update_git_install: no
python_pyenv_python_versions:
- "3.5.1"
- "2.7.9"
python_pyenv_delete_virtualenvs:
- venv_name: "delete_venv_name"
python_pyenv_virtualenvs:
- venv_name: "latest_v3"
py_version: "3.5.1"
- venv_name: "latest_v2"
py_version: "2.7.9"
The code in this repository is licensed under the Apache unless otherwise noted.
Please see LICENSE for details.
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
Releases are managed using bitbucket release feature. We use [Semantic Versioning](http://semver.org) for all the releases. Every change made to the code base will be referred to in the release notes (except for cleanups and refactorings).