This repository was archived by the owner on Mar 30, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +20
-7
lines changed Expand file tree Collapse file tree 2 files changed +20
-7
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ Here is the list of all variables and their default values:
2828- ` pycharm_flavor ` : ` pycharm-community ` . You can use also ` pycharm-professional ` or ` pycharm-educational ` .
2929- ` install_vscode ` : ` false `
3030- ` vscode_extensions ` : optional list of name_ids of extensions. eg.: ms-python.python (Python Official Extension)
31+ - ` pyenv_global ` : optional Python global version for pyenv (from [ staticdev.pyenv] ( https://github.com/staticdev/ansible-galaxy-pyenv ) )
32+ - ` pyenv_python_versions ` : optional list of Python versions installed (from [ staticdev.pyenv] ( https://github.com/staticdev/ansible-galaxy-pyenv ) )
3133
3234## Dependencies
3335
@@ -60,6 +62,16 @@ Here is the list of all variables and their default values:
6062 - ms-python.python
6163 - ms-python.vscode-pylance
6264 - shan.code-settings-sync
65+
66+ # role with pyenv attributes
67+ - hosts : all
68+ roles :
69+ - role : staticdev.python-developer
70+ vars :
71+ pyenv_global : " 3.9.6"
72+ vscode_extensions :
73+ - " 3.9.6"
74+ - " 3.8.11"
6375` ` `
6476
6577## License
Original file line number Diff line number Diff line change 11---
2+ - name : Ensure venv installed
3+ package :
4+ name : python3-venv
5+ state : present
6+ become : true
7+
28- name : Install pyenv
39 import_role :
410 name : staticdev.pyenv
511 vars :
612 pyenv_owner : " {{ ansible_env.USER }}"
713 pyenv_path : " {{ ansible_env.HOME }}/pyenv"
8- pyenv_global : " 3.9.5"
9- pyenv_python_versions :
10- - " 3.9.5"
11- - " 3.8.10"
12- - " 3.7.10"
13- - " 3.6.13"
14- - " pypy3.7-7.3.5"
14+ pyenv_global : " {{ pyenv_global }}"
15+ pyenv_python_versions : " {{ pyenv_python_versions }}"
1516 pyenv_virtualenvs : []
1617
1718- name : Check if pipx is installed
You can’t perform that action at this time.
0 commit comments