Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 21 days 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 (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-06-20T19:59:37.000Z (5 months ago)
- Last Synced: 2024-10-07T02:41:54.445Z (about 1 month ago)
- Topics: ansible, ansible-galaxy, ansible-role, docker, lazydocker, linux
- Language: Python
- Homepage: https://galaxy.ansible.com/darkwizard242/lazydocker
- Size: 47.9 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![build-test](https://github.com/darkwizard242/ansible-role-lazydocker/workflows/build-and-test/badge.svg?branch=master)](https://github.com/darkwizard242/ansible-role-lazydocker/actions?query=workflow%3Abuild-and-test) [![release](https://github.com/darkwizard242/ansible-role-lazydocker/workflows/release/badge.svg)](https://github.com/darkwizard242/ansible-role-lazydocker/actions?query=workflow%3Arelease) ![Ansible Role](https://img.shields.io/ansible/role/d/darkwizard242/lazydocker) [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=ansible-role-lazydocker&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=ansible-role-lazydocker) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=ansible-role-lazydocker&metric=reliability_rating)](https://sonarcloud.io/dashboard?id=ansible-role-lazydocker) [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=ansible-role-lazydocker&metric=security_rating)](https://sonarcloud.io/dashboard?id=ansible-role-lazydocker) ![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/darkwizard242/ansible-role-lazydocker?label=release) ![GitHub repo size](https://img.shields.io/github/repo-size/darkwizard242/ansible-role-lazydocker?color=orange&style=flat-square)
# 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.23.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'
```### 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.23.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.## 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/).