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

Commit f43ee89

Browse files
committed
Fix bug pre-commit check
1 parent c539aeb commit f43ee89

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,14 +29,14 @@
2929
when: pipx_version_cmd is failed
3030

3131
- name: Check if pre-commit is installed
32-
stat:
32+
command:
3333
path: "{{ ansible_env.HOME }}/.local/bin/pre-commit"
34-
register: pre_commit_folder_check
34+
register: pre_commit_cmd
3535

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

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

0 commit comments

Comments
 (0)