Skip to content

okchaty/ansible-role-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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/okchaty/ansible-role-python
Download:http://github.com/okchaty/ansible-role-python
Source:http://github.com/okchaty/ansible-role-python
Keywords:ansible-role-python

Ansible Galaxy role for Python.

List of applications:

Install it with the following command:

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

To install a specific version:

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