lazygit

build-test release Ansible Role Maintainability Rating Reliability Rating Security Rating GitHub tag (latest SemVer) GitHub repo size

Ansible Role: lazygit

Role to install (by default) lazygit on Debian/Ubuntu and EL systems.

Requirements

None.

Role Variables

Available variables are listed below (located in defaults/main.yml):

Variables list:

lazygit_app: lazygit
lazygit_version: '0.34'
lazygit_os: "{{ ansible_system }}"
lazygit_architecture_map:
  amd64: x86_64
  arm: arm64
  x86_64: x86_64
  armv6l: armv6
  armv7l: armv7
  aarch64: arm64
  32-bit: "386"
  64-bit: x86_64
lazygit_dl_url: https://github.com/jesseduffield/{{ lazygit_app }}/releases/download/v{{ lazygit_version }}/{{ lazygit_app }}_{{ lazygit_version }}_{{ lazygit_os }}_{{ lazygit_architecture_map[ansible_architecture] }}.tar.gz
lazygit_bin_path: /usr/local/bin
lazygit_file_owner: root
lazygit_file_group: root
lazygit_file_mode: '0755'

Variables table:

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_os Defines OS type.
lazygit_architecture_map Defines os architecture. Used for obtaining the correct type of binaries based on OS System Architecture.
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.

Dependencies

None

Example Playbook

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/

License

MIT

Author Information

This role was created by Ali Muhammad.

About

Installs/Uninstalls 'lazygit', a simple terminal UI for git commands.

Install
ansible-galaxy install darkwizard242/ansible-role-lazygit
GitHub repository
License
mit
Downloads
1761
Owner
Senior DevOps/CloudOps Engineer. Dedicated to Automating everything I come across. Love to work on and learn new technologies/tools everyday!