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

Commit 32c5b1a

Browse files
authored
Merge pull request #51 from staticdev/feature/update-poetry-installer
Update poetry installer
2 parents b197b25 + 02c4a99 commit 32c5b1a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

handlers/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
22
- name: delete poetry installer
33
file:
4-
path: "/home/{{ lookup('env', 'USER') }}/get-poetry.py"
4+
path: "/home/{{ lookup('env', 'USER') }}/install-poetry.py"
55
state: absent

tasks/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,22 +49,22 @@
4949
when: cookiecutter_folder_check is failed
5050

5151
- name: Check if poetry is installed
52-
command: "{{ ansible_env.HOME }}/.poetry/bin/poetry"
52+
command: "{{ ansible_env.HOME }}/.local/bin/poetry"
5353
register: poetry_cmd
5454
changed_when: false
5555
ignore_errors: true
5656

5757
- name: Download poetry installer
5858
get_url:
59-
url: https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py
60-
dest: "{{ ansible_env.HOME }}/get-poetry.py"
59+
url: https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py
60+
dest: "{{ ansible_env.HOME }}/install-poetry.py"
6161
mode: "0400"
6262
timeout: 20
6363
when: poetry_cmd is failed
6464
notify: delete poetry installer
6565

6666
- name: Install poetry
67-
command: "python3 {{ ansible_env.HOME }}/get-poetry.py"
67+
command: "python3 {{ ansible_env.HOME }}/install-poetry.py"
6868
when: poetry_cmd is failed
6969

7070
- name: Check if nox is installed

0 commit comments

Comments
 (0)