Role to install (by default) lazydocker on Debian/Ubuntu and EL systems.
None.
Available variables are listed below (located in defaults/main.yml
):
lazydocker_app: lazydocker
lazydocker_version: '0.24.1'
lazydocker_architecture_map:
amd64: x86_64
arm: arm64
x86_64: x86_64
armv6l: armv6
armv7l: armv7
aarch64: arm64
32-bit: "386"
64-bit: x86_64
lazydocker_dl_url: https://github.com/jesseduffield/{{ lazydocker_app }}/releases/download/v{{ lazydocker_version }}/{{ lazydocker_app }}_{{ lazydocker_version }}_{{ ansible_system }}_{{ lazydocker_architecture_map[ansible_architecture] }}.tar.gz
lazydocker_bin_path: /usr/local/bin
lazydocker_file_owner: root
lazydocker_file_group: root
lazydocker_file_mode: '0755'
Variable | Description |
---|---|
lazydocker_app | Defines the app to install i.e. lazydocker |
lazydocker_version | Defined to dynamically fetch the desired version to install. Defaults to: 0.24.1 |
lazydocker_architecture_map | Defined to dynamically fetch the processor architecture and assign relevant value |
lazydocker_dl_url | Defines URL to download the lazydocker binary from. |
lazydocker_bin_path | Defined to dynamically set the appropriate path to store lazydocker binary into. Defaults to (as generally available on any user's PATH): /usr/local/bin |
lazydocker_file_owner | Owner for the binary file of lazydocker. |
lazydocker_file_group | Group for the binary file of lazydocker. |
lazydocker_file_mode | Mode for the binary file of lazydocker. |
None
For default behaviour of role (i.e. installation of lazydocker) in ansible playbooks.
- hosts: servers
roles:
- darkwizard242.lazydocker
For customizing behavior of role (i.e. specifying the desired lazydocker version) in ansible playbooks.
- hosts: servers
roles:
- darkwizard242.lazydocker
vars:
lazydocker_version: 0.8
For customizing behavior of role (i.e. placing binary of lazydocker package in different location) in ansible playbooks.
- hosts: servers
roles:
- darkwizard242.lazydocker
vars:
lazydocker_bin_path: /bin/
This role was created by Ali Muhammad.