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

Commit ab3dc0d

Browse files
committed
Fix path problems
1 parent ede82c3 commit ab3dc0d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tasks/main.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
register: pre_commit_folder_check
3535

3636
- name: Install pre-commit
37-
command: pipx install pre-commit
37+
command: "{{ ansible_env.HOME }}/.local/bin/pipx install pre-commit"
3838
register: output
3939
when: pre_commit_folder_check is failed
4040

@@ -44,7 +44,7 @@
4444
register: cookiecutter_folder_check
4545

4646
- name: Install cookiecutter
47-
command: pipx install cookiecutter
47+
command: "{{ ansible_env.HOME }}/.local/bin/pipx install cookiecutter"
4848
register: output
4949
when: cookiecutter_folder_check is failed
5050

@@ -68,18 +68,18 @@
6868
when: poetry_cmd is failed
6969

7070
- name: Check if nox is installed
71-
command: "{{ ansible_env.HOME }}/.local/bin/nox"
72-
register: nox_cmd
71+
command: "{{ ansible_env.HOME }}/.local/bin/nox --version"
72+
register: nox_version_cmd
7373
changed_when: false
7474
ignore_errors: true
7575

7676
- name: Install nox
77-
command: pipx install nox
78-
when: nox_cmd is failed
77+
command: "{{ ansible_env.HOME }}/.local/bin/pipx install nox"
78+
when: nox_version_cmd is failed
7979

8080
- name: Install nox-poetry
81-
command: pipx inject nox nox-poetry
82-
when: nox_cmd is failed
81+
command: "{{ ansible_env.HOME }}/.local/bin/pipx inject nox nox-poetry"
82+
when: nox_version_cmd is failed
8383

8484
- name: Install pycharm
8585
include_tasks: pycharm.yml

0 commit comments

Comments
 (0)