Skip to content

Commit 20cef45

Browse files
authored
fix(ansible): simplify git-lfs installation (#6834)
Signed-off-by: Mete Fatih Cırıt <mfc@autoware.org>
1 parent 95a3e79 commit 20cef45

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

ansible/roles/dev_tools/tasks/main.yaml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,12 @@
33
become: true
44
ansible.builtin.apt:
55
name: git-lfs
6-
state: latest
6+
state: present
77
update_cache: true
88

9-
# ref: https://github.com/ansible/ansible-lint/issues/1780
10-
- name: Check if git lfs is installed # https://github.com/git-lfs/git-lfs/issues/901
11-
community.general.git_config:
12-
list_all: true
13-
scope: global
14-
register: dev_tools__git_lfs__git_global_config
15-
16-
- name: Setup Git LFS
9+
- name: Setup Git LFS for current user
1710
ansible.builtin.command: git lfs install
18-
when: "'filter.lfs.required' not in dev_tools__git_lfs__git_global_config.config_values"
19-
changed_when: true
11+
changed_when: false
2012

2113
- name: Install pipx
2214
become: true

0 commit comments

Comments
 (0)