We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
pre-commit install
1 parent 94e52f4 commit 7c4da9aCopy full SHA for 7c4da9a
etc/kayobe/ansible/install-pre-commit-hooks.yml
@@ -10,10 +10,11 @@
10
name: pre-commit
11
version: 3.5.0
12
virtualenv: "{{ lookup('ansible.builtin.env', 'VIRTUAL_ENV') }}"
13
+ register: pip_install
14
15
- name: Register pre-commit hooks with git
16
ansible.builtin.command:
17
cmd: "{{ lookup('ansible.builtin.env', 'VIRTUAL_ENV') }}/bin/pre-commit install"
- creates: "{{ lookup('ansible.builtin.env', 'KAYOBE_CONFIG_PATH') }}/../../.git/hooks/pre-commit"
18
args:
19
chdir: "{{ lookup('ansible.builtin.env', 'KAYOBE_CONFIG_PATH') }}"
20
+ when: pip_install is changed
0 commit comments