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
1 parent 64cae51 commit 7649880Copy full SHA for 7649880
etc/kayobe/ansible/install-pre-commit-hooks.yml
@@ -2,13 +2,15 @@
2
- name: Install pre-commit hooks
3
hosts: localhost
4
gather_facts: false
5
+ vars:
6
+ pre_commit_version: 3.5.0
7
tasks:
8
9
block:
10
- name: Install pre-commit hooks into kayobe virtual env
11
ansible.builtin.pip:
12
name: pre-commit
- version: 3.5.0
13
+ version: "{{ pre_commit_version }}"
14
virtualenv: "{{ lookup('ansible.builtin.env', 'VIRTUAL_ENV') }}"
15
register: pip_install
16
0 commit comments