Skip to content

Commit 1a61c81

Browse files
committed
feat!: change when pre-commit hooks are installed
Initally `pre-commit` hooks were installed due the presense of a hook for `control host bootstrap` and when `enable_pre_commit_hooks` was set to `true`. However now `pre-commit` hooks are only installed when the hook is present or the playbook is called, no requirement for an `Ansible` conditional to be true.
1 parent 686e5e4 commit 1a61c81

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

etc/kayobe/ansible/install-pre-commit-hooks.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,3 @@
1919
creates: "{{ lookup('ansible.builtin.env', 'KAYOBE_CONFIG_PATH') }}/../../.git/hooks/pre-commit"
2020
args:
2121
chdir: "{{ lookup('ansible.builtin.env', 'KAYOBE_CONFIG_PATH') }}"
22-
when: enable_pre_commit_hooks | default(false)

etc/kayobe/hooks/control-host-bootstrap/post.d/50-install-pre-commit-hooks.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)