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

Commit ede82c3

Browse files
committed
Fix nox check
1 parent 6348bce commit ede82c3

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tasks/main.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,18 @@
6868
when: poetry_cmd is failed
6969

7070
- name: Check if nox is installed
71-
stat:
72-
path: "{{ ansible_env.HOME }}/.local/bin/nox"
73-
register: nox_folder_check
71+
command: "{{ ansible_env.HOME }}/.local/bin/nox"
72+
register: nox_cmd
73+
changed_when: false
74+
ignore_errors: true
7475

7576
- name: Install nox
7677
command: pipx install nox
77-
when: nox_folder_check is failed
78+
when: nox_cmd is failed
7879

7980
- name: Install nox-poetry
8081
command: pipx inject nox nox-poetry
81-
when: nox_folder_check is failed
82+
when: nox_cmd is failed
8283

8384
- name: Install pycharm
8485
include_tasks: pycharm.yml

0 commit comments

Comments
 (0)