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

Commit d9a686f

Browse files
committed
Change pre-commit check
1 parent a4fb1b7 commit d9a686f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tasks/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@
2929
when: pipx_version_cmd is failed
3030

3131
- name: Check if pre-commit is installed
32-
command: "{{ ansible_env.HOME }}/.local/bin/pre-commit"
33-
register: pre_commit_cmd
32+
command: "{{ ansible_env.HOME }}/.local/bin/pre-commit --version"
33+
register: pre_commit_check
3434
changed_when: false
3535
ignore_errors: true
3636

3737
- name: Install pre-commit
3838
command: "{{ ansible_env.HOME }}/.local/bin/pipx install pre-commit"
3939
register: output
40-
when: pre_commit_cmd is failed
40+
when: pre_commit_check is failed
4141

4242
- name: Check if cookiecutter is installed
4343
stat:

0 commit comments

Comments
 (0)