Skip to content
This repository was archived by the owner on Mar 30, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion handlers/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
- name: delete poetry installer
file:
path: "/home/{{ lookup('env', 'USER') }}/get-poetry.py"
path: "/home/{{ lookup('env', 'USER') }}/install-poetry.py"
state: absent
8 changes: 4 additions & 4 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,22 +49,22 @@
when: cookiecutter_folder_check is failed

- name: Check if poetry is installed
command: "{{ ansible_env.HOME }}/.poetry/bin/poetry"
command: "{{ ansible_env.HOME }}/.local/bin/poetry"
register: poetry_cmd
changed_when: false
ignore_errors: true

- name: Download poetry installer
get_url:
url: https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py
dest: "{{ ansible_env.HOME }}/get-poetry.py"
url: https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py
dest: "{{ ansible_env.HOME }}/install-poetry.py"
mode: "0400"
timeout: 20
when: poetry_cmd is failed
notify: delete poetry installer

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

- name: Check if nox is installed
Expand Down