luismayta / ansible-role-python

role python for ansible

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ansible Role Python

Build Status Ansible Galaxy GitHub issues GitHub license

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

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.

Contributing

Please see CONTRIBUTING for details.

Versioning

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).

Credits

Made with ❤️ ☕ and 🍕 by author and company.

About

role python for ansible

License:Apache License 2.0


Languages

Language:Makefile 51.2%Language:Go 27.1%Language:Dockerfile 9.6%Language:Shell 7.7%Language:Python 4.4%