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

Commit 1afe4c5

Browse files
author
staticdev
committed
New user and path handling
1 parent 1f76b00 commit 1afe4c5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tasks/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import_role:
44
name: staticdev.ansible_galaxy_pyenv
55
vars:
6-
pyenv_owner: "{{ lookup('env', 'USER') }}"
7-
pyenv_path: "{{ lookup('env', 'HOME') }}/pyenv"
6+
pyenv_owner: "{{ ansible_env.USER }}"
7+
pyenv_path: "{{ ansible_env.HOME }}/pyenv"
88
pyenv_global: "3.9.1"
99
pyenv_python_versions:
1010
- "3.9.1"
@@ -42,13 +42,13 @@
4242
- name: Download poetry installer
4343
get_url:
4444
url: https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py
45-
dest: "{{ lookup('env', 'HOME') }}"
45+
dest: "{{ ansible_env.HOME }}/get-poetry.py"
4646
mode: "0400"
4747
when: poetry_version_cmd is failed
4848
notify: delete poetry installer
4949

5050
- name: Install poetry
51-
command: "python {{ lookup('env', 'HOME') }}/get-poetry.py"
51+
command: "python3 {{ ansible_env.HOME }}/get-poetry.py"
5252
when: poetry_version_cmd is failed
5353

5454
- name: Check if nox is installed

0 commit comments

Comments
 (0)