Skip to content

darkwizard242/ansible-role-unzip

Repository files navigation

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

Ansible Role: unzip

Role to install (by default) unzip package or uninstall (if passed as var) on Ubuntu and CentOS systems.

Requirements

None.

Role Variables

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

Variables list:

unzip_app: unzip
unzip_desired_state: present

Variables table:

Variable Description
unzip_app Defines the app to install i.e. unzip
unzip_desired_state Defined to dynamically chose whether to install (i.e. either present or latest) or uninstall (i.e. absent) the package. Defaults to present.

Dependencies

None

Example Playbook

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

- hosts: servers
  roles:
    - darkwizard242.unzip

For customizing behavior of role (i.e. installation of latest unzip package) in ansible playbooks.

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

For customizing behavior of role (i.e. un-installation of unzip package) in ansible playbooks.

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

License

MIT

Author Information

This role was created by Ali Muhammad.