-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDebian.yml
36 lines (36 loc) · 845 Bytes
/
Debian.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
- name: Install packages
become: true
ansible.builtin.package:
name:
- ninja-build
- gettext
- cmake
- unzip
- curl
- build-essential
- git
- jq
- tmux
- zsh
- ripgrep
- fzf
- bat
- fd-find
- fswatch
- name: Get lazygit latest version
shell: |-
curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[^"]*'
register: lazygit_version
- name: Get lazygit tar
get_url:
url: "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_{{ lazygit_version.stdout }}_Linux_x86_64.tar.gz"
dest: scripts/lazygit.tgz
- name: Install lazygit
become: true
unarchive:
src: scripts/lazygit.tgz
dest: /usr/local/bin/
mode: "0755"
creates: /usr/local/bin/lazygit
include:
- lazygit