darkwizard242.dive

Ansible Role: Dive

This role is used to install the tool dive on Debian/Ubuntu and EL systems. Dive helps you explore the contents of a Docker image and find ways to reduce its size.

Requirements

No requirements needed.

Role Variables

Here are the variables you can use (found in defaults/main.yml):

Variables:

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'

Variable Descriptions:

Variable Description
dive_app The name of the app to install (dive).
dive_version The version of dive to install, default is 0.12.0.
dive_os Type of operating system, default is linux.
dive_arch System architecture, default is amd64.
dive_dl_url URL to download the dive binary from.
dive_bin_path Path where the dive binary will be stored, default is /usr/local/bin.
dive_file_owner The owner of the dive binary file.
dive_file_group The group of the dive binary file.
dive_file_permission_mode The permission level for the file, default is 0755.

Dependencies

No dependencies required.

Example Playbook

To use the role and install dive in an Ansible playbook:

- hosts: servers
  roles:
    - darkwizard242.dive

To customize the version of dive in the playbook:

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

To place the dive binary in a different location:

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

License

This project is under the MIT License.

Author

This role was created by Ali Muhammad.

Informazioni sul progetto

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

Installa
ansible-galaxy install darkwizard242.dive
Licenza
mit
Download
1.8k
Proprietario
Senior DevOps/CloudOps Engineer. Dedicated to Automating everything I come across. Love to work on and learn new technologies/tools everyday!