Skip to content
This repository was archived by the owner on May 8, 2025. It is now read-only.

Commit 178f255

Browse files
authored
Merge pull request #214 from staticdev/bugfix/remove-ansible-env-user
Remove ansible_env.USER usage
2 parents 1519a34 + 89b0f75 commit 178f255

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Here is the list of all variables and their default values:
2626
- `pyenv_env: "user"` (should be either `"user"` or `"system"`)
2727
- `pyenv_path: "{% if pyenv_env == 'user' %}{{ ansible_env.HOME }}/pyenv{% else %}/usr/local/pyenv{% endif %}"`
2828
- `pyenvrc_path: "{{ pyenv_path }}"`
29-
- `pyenv_owner: "{{ ansible_env.USER }}"`
29+
- `pyenv_owner: "{{ ansible_facts.user_id }}"`
3030
- `pyenv_owner_group: "{{ pyenv_owner }}"`
3131
- `pyenv_python_versions: [3.11.4]`
3232
- `pyenv_virtualenvs: [{ venv_name: latest, py_version: 3.11.4 }]`

defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pyenv_update_version: "HEAD"
66
pyenv_env: "user"
77
pyenv_path: "{% if pyenv_env == 'user' %}{{ ansible_env.HOME }}/pyenv{% else %}/usr/local/pyenv{% endif %}"
88
pyenvrc_path: "{{ pyenv_path }}"
9-
pyenv_owner: "{{ ansible_env.USER }}"
9+
pyenv_owner: "{{ ansible_facts.user_id }}"
1010
pyenv_owner_group: "{{ pyenv_owner }}"
1111
pyenv_shellrc_file: "{% if pyenv_env == 'user' %}~/.bashrc{% else %}/etc/profile.d/pyenv.sh{% endif %}"
1212
pyenv_update_git_install: true

0 commit comments

Comments
 (0)