darkwizard242 / ansible-role-lazygit

Ansible role for lazygit. Available on Ansible Galaxy.

Home Page:https://galaxy.ansible.com/darkwizard242/lazygit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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_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'

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_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

Ansible role for lazygit. Available on Ansible Galaxy.

https://galaxy.ansible.com/darkwizard242/lazygit

License:MIT License


Languages

Language:Python 100.0%