forked from avanov/ansible-galaxy-pyenv
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #152 from staticdev/docs/update-docs-py311
Update docs and defaults with py3.11
- Loading branch information
Showing
6 changed files
with
86 additions
and
270 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# Ansible role: Pyenv | ||
|
||
[![Tests](https://github.com/staticdev/ansible-galaxy-pyenv/workflows/Tests/badge.svg)][tests] | ||
|
||
[tests]: https://github.com/staticdev/ansible-galaxy-pyenv/actions?workflow=Tests | ||
|
||
Ansible Galaxy role for [pyenv] on Debian / Ubuntu / RedHat / OSX. | ||
|
||
Install it with the following command: | ||
|
||
```console | ||
$ ansible-galaxy install staticdev.pyenv | ||
``` | ||
|
||
## Requirements | ||
|
||
None. | ||
|
||
## Role Variables | ||
|
||
Here is the list of all variables and their default values: | ||
|
||
- `pyenv_env: "user"` (should be either `"user"` or `"system"`) | ||
- `pyenv_path: "{% if pyenv_env == 'user' %}{{ ansible_env.HOME }}/pyenv{% else %}/usr/local/pyenv{% endif %}"` | ||
- `pyenv_owner: "{{ ansible_env.USER }}"` | ||
- `pyenv_owner_group: "{{ pyenv_owner }}"` | ||
- `pyenv_python_versions: [3.11.0]` | ||
- `pyenv_virtualenvs: [{ venv_name: latest, py_version: 3.11.0 }]` | ||
- `pyenv_global: [3.11.0]` | ||
- `pyenv_update_git_install: true` (get latest pyenv from git) | ||
- `pyenv_enable_autocompletion: false` | ||
- `pyenv_enable_virtualenvs: true` | ||
- `pyenv_setting_path: "{% if pyenv_env == 'user' %}~/.bashrc{% else %}/etc/profile.d/pyenv.sh{% endif %}"` | ||
|
||
## Dependencies | ||
|
||
None. | ||
|
||
## Example Playbook | ||
|
||
```yaml | ||
- hosts: servers | ||
roles: | ||
- role: staticdev.pyenv | ||
pyenv_path: "{{ home }}/pyenv" | ||
pyenv_owner: "{{ instance_owner }}" | ||
pyenv_global: | ||
- 3.11.0 | ||
- 3.10.6 | ||
pyenv_enable_autocompletion: false | ||
pyenv_python_versions: | ||
- 3.11.0 | ||
- 3.10.6 | ||
pyenv_virtualenvs: | ||
- venv_name: latest_v311 | ||
py_version: 3.11.0 | ||
- venv_name: latest_v310 | ||
py_version: 3.10.6 | ||
``` | ||
## Contributing | ||
Contributions are very welcome. | ||
To learn more, see the [Contributor Guide]. | ||
## License | ||
Distributed under the terms of the [MIT] license, | ||
_Ansible role Pyenv_ is free and open source software. | ||
## Author Information | ||
[staticdev]. Heavily based on Maxim Avanov's [avanov.pyenv] | ||
[avanov.pyenv]: https://galaxy.ansible.com/avanov/pyenv | ||
[contributor guide]: CONTRIBUTING.rst | ||
[mit]: https://opensource.org/licenses/MIT | ||
[pyenv]: https://github.com/yyuu/pyenv | ||
[staticdev]: https://github.com/staticdev |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters