linux-config/roles/modern_unix_tools/tasks/main.yml
Sagi Dayan b44dfac7e0
github release role update
- If `man_path` is defiled will add man page to system
 - If `autocomplete_path` is defined will add autocomplete source
2022-01-05 14:59:23 +02:00

80 lines
2 KiB
YAML

---
- name: Installing bat (cat like)
ansible.builtin.include_role:
name: gh_release_bin
vars:
name: bat
repo: sharkdp/bat
bin_path: "/bat-*/bat"
man_path: "/bat-*/bat.1"
autocomplete_path: "/bat-*/autocomplete/bat.bash"
filter: x86_64-unknown-linux-gnu
- name: verify Bat (better Cat) theme
changed_when: false
ansible.builtin.lineinfile:
path: "~/.shellconfig/common.sh"
regexp: "^export BAT_THEME="
line: 'export BAT_THEME="${{theme}}"'
- name: Instaling TLDR (pip3)
shell: pip3 install tldr
- name: Installing bottom (btm) (Top like)
ansible.builtin.include_role:
name: gh_release_bin
vars:
name: btm
repo: ClementTsang/bottom
bin_path: "/btm"
autocomplete_path: "/completion/btm.bash"
filter: bottom_x86_64-unknown-linux-gnu.tar.gz
- name: Installing gitui
ansible.builtin.include_role:
name: gh_release_bin
vars:
name: gitui
repo: extrawurst/gitui
bin_path: "/gitui"
filter: gitui-linux-musl
- name: Verifying gitui config
file:
path: ~/.config/gitui
state: directory
- name: Copy gitui keybindings
copy:
src: dotfiles/gitui/key_config.ron
dest: ~/.config/gitui/key_config.ron
force: yes
- name: Copy gitui theme config
copy:
src: dotfiles/gitui/theme.ron
dest: ~/.config/gitui/theme.ron
force: yes
- name: Installing LSD (ls like)
ansible.builtin.include_role:
name: gh_release_bin
vars:
name: lsd
repo: Peltoche/lsd
bin_path: "/lsd-*/lsd"
man_path: "/lsd-*/lsd.1"
autocomplete_path: "/lsd-*/autocomplete/lsd.bash-completion"
filter: x86_64-unknown-linux-gnu.tar.gz
- name: Installing ripgrep (grep like)
ansible.builtin.include_role:
name: gh_release_bin
vars:
name: rg
repo: BurntSushi/ripgrep
bin_path: "/ripgrep-*/rg"
man_path: "/ripgrep-*/doc/rg.1"
autocomplete_path: "/ripgrep-*/complete/rg.bash"
filter: x86_64-unknown-linux-musl.tar.gz