darkwizard242.unzip

Ansible Role: unzip

This is a role to install the unzip package on Ubuntu and CentOS systems. By default, it installs the package, but it can also uninstall it if specified.

Requirements

No special requirements.

Role Variables

The available variables are listed below (found in defaults/main.yml):

Variables:

unzip_app: unzip
unzip_desired_state: present

Variables Explanation:

Variable Description
unzip_app This defines the application to install, which is unzip.
unzip_desired_state This decides whether to install (present or latest) or uninstall (absent) the package. It defaults to present.

Dependencies

No dependencies.

Example Playbook

To use the role with its default behavior (installing unzip):

- hosts: servers
  roles:
    - darkwizard242.unzip

To customize the role to install the latest version of unzip:

- hosts: servers
  roles:
    - darkwizard242.unzip
  vars:
    unzip_desired_state: latest

To customize the role to uninstall the unzip package:

- hosts: servers
  roles:
    - darkwizard242.unzip
  vars:
    unzip_desired_state: absent

License

This role is licensed under the MIT License.

Author Information

This role was created by Ali Muhammad.

Informazioni sul progetto

Role for dynamically installing or uninstalling 'unzip' package.

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