Role to install (by default) lazygit on Debian/Ubuntu and EL systems.
None.
Available variables are listed below (located in defaults/main.yml
):
lazygit_app: lazygit
lazygit_version: '0.34'
lazygit_dl_url: https://github.com/jesseduffield/{{ lazygit_app }}/releases/download/v{{ lazygit_version }}/{{ lazygit_app }}_{{ lazygit_version }}_{{ ansible_system }}_{{ ansible_architecture }}.tar.gz
lazygit_bin_path: /usr/local/bin
lazygit_file_owner: root
lazygit_file_group: root
lazygit_file_mode: '0755'
Variable | Description |
---|---|
lazygit_app | Defines the app to install i.e. lazygit |
lazygit_version | Defined to dynamically fetch the desired version to install. Defaults to: 0.34 |
lazygit_dl_url | Defines URL to download the lazygit binary from. |
lazygit_bin_path | Defined to dynamically set the appropriate path to store lazygit binary into. Defaults to (as generally available on any user's PATH): /usr/local/bin |
lazygit_file_owner | Owner for the binary file of lazygit. |
lazygit_file_group | Group for the binary file of lazygit. |
lazygit_file_mode | Mode for the binary file of lazygit. |
None
For default behaviour of role (i.e. installation of lazygit) in ansible playbooks.
- hosts: servers
roles:
- darkwizard242.lazygit
For customizing behavior of role (i.e. specifying the desired lazygit version) in ansible playbooks.
- hosts: servers
roles:
- darkwizard242.lazygit
vars:
lazygit_version: 0.33
For customizing behavior of role (i.e. placing binary of lazygit package in different location) in ansible playbooks.
- hosts: servers
roles:
- darkwizard242.lazygit
vars:
lazygit_bin_path: /bin/
This role was created by Ali Muhammad.