Skip to content

israelgp24/ansible-role-python

 
 

Repository files navigation

Ansible Role Python

Build Status Ansible Galaxy GitHub issues Average time to resolve an issue Percentage of issues still open GitHub license

Version:0.2.2
Web:https://github.com/hadenlabs/ansible-role-python
Download:http://github.com/hadenlabs/ansible-role-python
Source:http://github.com/hadenlabs/ansible-role-python
Keywords:ansible-role-python

Ansible Galaxy role for Python.

List of applications:

Install it with the following command:

$ ansible-galaxy install hadenlabs.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: hadenlabs.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:
    - hadenlabs.python

To install a specific version:

- hosts: servers
  roles:
    - { role: hadenlabs.python }
- hosts: servers
  roles:
     - role: hadenlabs.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"

MIT

Please see CHANGELOG for more information what has changed recently.

Please see CONTRIBUTING for details.

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

About

Role for python

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Makefile 67.7%
  • Shell 28.0%
  • Dockerfile 4.3%