Skip to content

Commit 7649880

Browse files
jackhodgkissmarkgoddard
authored andcommitted
feat: use variable to control pre_commit version
1 parent 64cae51 commit 7649880

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22
- name: Install pre-commit hooks
33
hosts: localhost
44
gather_facts: false
5+
vars:
6+
pre_commit_version: 3.5.0
57
tasks:
68
- name: Install pre-commit hooks
79
block:
810
- name: Install pre-commit hooks into kayobe virtual env
911
ansible.builtin.pip:
1012
name: pre-commit
11-
version: 3.5.0
13+
version: "{{ pre_commit_version }}"
1214
virtualenv: "{{ lookup('ansible.builtin.env', 'VIRTUAL_ENV') }}"
1315
register: pip_install
1416

0 commit comments

Comments
 (0)