dive

build-test release Ansible Role Maintainability Rating Reliability Rating Security Rating GitHub tag (latest SemVer) GitHub repo size

Ansible Role: dive

Role to install (by default) dive on Debian/Ubuntu and EL systems. dive is a tool for exploring a docker image, layer contents, and discovering ways to shrink the size of your Docker/OCI image.

Requirements

None.

Role Variables

Available variables are listed below (located in defaults/main.yml):

Variables list:

dive_app: dive
dive_version: 0.12.0
dive_os: linux
dive_arch: amd64
dive_dl_url: https://github.com/wagoodman/{{ dive_app }}/releases/download/v{{ dive_version }}/{{ dive_app }}_{{ dive_version }}_{{ dive_os }}_{{ dive_arch }}.tar.gz
dive_bin_path: /usr/local/bin
dive_file_owner: root
dive_file_group: root
dive_file_permission_mode: '0755'

Variables table:

Variable Description
dive_app Defines the app to install i.e. dive
dive_version Defined to dynamically fetch the desired version to install. Defaults to: 0.12.0
dive_os Defines os type. Defaults to: linux
dive_arch Defines os architecture. Defaults to: amd64
dive_dl_url Defines URL to download the dive binary from.
dive_bin_path Defined to dynamically set the appropriate path to store dive binary into. Defaults to (as generally available on any user's PATH): /usr/local/bin
dive_file_owner Owner for the binary file of dive.
dive_file_group Group for the binary file of dive.
dive_file_permission_mode Defines the permission mode level for the file. Defaults to: 0755

Dependencies

None

Example Playbook

For default behaviour of role (i.e. installation of dive) in ansible playbooks.

- hosts: servers
  roles:
    - darkwizard242.dive

For customizing behavior of role (i.e. specifying the desired dive version) in ansible playbooks.

- hosts: servers
  roles:
    - darkwizard242.dive
  vars:
    dive_version: 0.9.2

For customizing behavior of role (i.e. placing binary of dive package in different location) in ansible playbooks.

- hosts: servers
  roles:
    - darkwizard242.dive
  vars:
    dive_bin_path: /bin/

License

MIT

Author Information

This role was created by Ali Muhammad.

About

Installs/Uninstalls 'dive'. Tool for exploring each layer in a docker image.

Install
ansible-galaxy install darkwizard242/ansible-role-dive
GitHub repository
License
mit
Downloads
1370
Owner
Senior DevOps/CloudOps Engineer. Dedicated to Automating everything I come across. Love to work on and learn new technologies/tools everyday!