https://github.com/darkwizard242/ansible-role-lazydocker
Ansible role for lazydocker. Available on Ansible Galaxy.
https://github.com/darkwizard242/ansible-role-lazydocker
ansible ansible-galaxy ansible-role docker lazydocker linux
Last synced: 6 months ago
JSON representation
Ansible role for lazydocker. Available on Ansible Galaxy.
- Host: GitHub
- URL: https://github.com/darkwizard242/ansible-role-lazydocker
- Owner: darkwizard242
- License: mit
- Created: 2020-06-06T18:47:25.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-11-14T17:24:43.000Z (7 months ago)
- Last Synced: 2025-11-14T19:24:25.354Z (7 months ago)
- Topics: ansible, ansible-galaxy, ansible-role, docker, lazydocker, linux
- Language: Python
- Homepage: https://galaxy.ansible.com/darkwizard242/lazydocker
- Size: 44.9 KB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/darkwizard242/ansible-role-lazydocker/actions?query=workflow%3Abuild-and-test) [](https://github.com/darkwizard242/ansible-role-lazydocker/actions?query=workflow%3Arelease)  [](https://sonarcloud.io/dashboard?id=ansible-role-lazydocker) [](https://sonarcloud.io/dashboard?id=ansible-role-lazydocker) [](https://sonarcloud.io/dashboard?id=ansible-role-lazydocker)  
# Ansible Role: lazydocker
Role to install (_by default_) [lazydocker](https://github.com/jesseduffield/lazydocker) on **Debian/Ubuntu** and **EL** systems.
## Requirements
None.
## Role Variables
Available variables are listed below (located in `defaults/main.yml`):
### Variables list:
```yaml
lazydocker_app: lazydocker
lazydocker_version: '0.24.3'
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'
lazydocker_config_src: vars/lazydocker-config.yml
lazydocker_users:
- user1
- user2
```
### Variables table:
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.3**
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.
lazydocker_config_src | Path to the config.yml file which will be installed for each user.
lazydocker_users | Users to install lazydocker config.yml file for.
## Dependencies
None
## Example Playbook
For default behaviour of role (i.e. installation of **lazydocker**) in ansible playbooks.
```yaml
- hosts: servers
roles:
- darkwizard242.lazydocker
```
For customizing behavior of role (i.e. specifying the desired **lazydocker** version) in ansible playbooks.
```yaml
- 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.
```yaml
- hosts: servers
roles:
- darkwizard242.lazydocker
vars:
lazydocker_bin_path: /bin/
```
## License
[MIT](https://github.com/darkwizard242/ansible-role-lazydocker/blob/master/LICENSE)
## Author Information
This role was created by [Ali Muhammad](https://www.alimuhammad.dev/).