darkwizard242.lazygit
Ansible Role: lazygit
This role installs lazygit by default on Debian/Ubuntu and EL systems.
Requirements
No specific requirements.
Role Variables
Here are the variables that you can use (found in defaults/main.yml
):
List of Variables:
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'
Description of Variables:
Variable | Description |
---|---|
lazygit_app | The name of the app to install, which is lazygit. |
lazygit_version | The version of lazygit to install. Defaults to 0.34. |
lazygit_os | The operating system type. |
lazygit_architecture_map | Maps the OS architecture to the correct type of binaries. |
lazygit_dl_url | The URL to download the lazygit binary from. |
lazygit_bin_path | The path where the lazygit binary will be stored. Defaults to /usr/local/bin. |
lazygit_file_owner | The owner of the lazygit binary file. |
lazygit_file_group | The group for the lazygit binary file. |
lazygit_file_mode | The permission mode for the lazygit binary file. |
Dependencies
None
Example Playbook
To install lazygit using the default settings in your Ansible playbooks:
- hosts: servers
roles:
- darkwizard242.lazygit
To customize and specify a different lazygit version in your playbooks:
- hosts: servers
roles:
- darkwizard242.lazygit
vars:
lazygit_version: 0.33
To change the binary installation path of lazygit in your playbooks:
- hosts: servers
roles:
- darkwizard242.lazygit
vars:
lazygit_bin_path: /bin/
License
This project is licensed under the MIT License.
Author Information
This role was created by Ali Muhammad.
Informazioni sul progetto
Installs/Uninstalls 'lazygit', a simple terminal UI for git commands.
Installa
ansible-galaxy install darkwizard242.lazygit
Licenza
mit
Download
2.1k
Proprietario
Senior DevOps/CloudOps Engineer.
Dedicated to Automating everything I come across.
Love to work on and learn new technologies/tools everyday!