Skip to content

Commit

Permalink
feat(ansible): add git-lfs role (#3027)
Browse files Browse the repository at this point in the history
* feat(ansible): add git-lfs

Signed-off-by: yukke42 <yusuke.muramatsu@tier4.jp>

* Update ansible/roles/git_lfs/tasks/main.yaml

Signed-off-by: yukke42 <yusuke.muramatsu@tier4.jp>
Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com>
  • Loading branch information
yukke42 and kenji-miyake committed Nov 15, 2022
1 parent 5fba5a1 commit ef48253
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions ansible/playbooks/universe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@
when: rosdistro != 'rolling'
- role: autoware.dev_env.tensorrt
when: prompt_install_nvidia == 'y'
- role: autoware.dev_env.git_lfs
13 changes: 13 additions & 0 deletions ansible/roles/git_lfs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Git Large File Storage

This role installs Git LFS. You can access detailed information about Git LFS with [this link](https://git-lfs.github.com/).

## Inputs

None.

## Manual Installation

```bash
git lfs install
```
Empty file.
Empty file.
19 changes: 19 additions & 0 deletions ansible/roles/git_lfs/tasks/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# https://github.com/git-lfs/git-lfs/wiki/Installation#debian-and-ubuntu
- name: Download script
ansible.builtin.get_url:
url: https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh
dest: /tmp/script.sh
mode: 0764

- name: Setup
become: true
environment:
os: "{{ ansible_distribution }}"
dist: "{{ ansible_distribution_release }}"
ansible.builtin.script: /tmp/script.sh

- name: Install Git LFS
become: true
ansible.builtin.apt:
name:
- git-lfs

0 comments on commit ef48253

Please sign in to comment.