jq

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

Ansible Role: jq

Role to install (by default) jq package or uninstall (if passed as var) on Debian family and EL family systems.

Requirements

None.

Role Variables

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

Variables list:

jq_app: jq
jq_desired_state: present

Variables table:

Variable Description
jq_app Defines the app to install i.e. jq
jq_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 jq package) in ansible playbooks.

- hosts: servers
  roles:
    - darkwizard242.jq

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

- hosts: servers
  roles:
    - darkwizard242.jq
  vars:
    jq_desired_state: latest

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

- hosts: servers
  roles:
    - darkwizard242.jq
  vars:
    jq_desired_state: absent

License

MIT

Author Information

This role was created by Ali Muhammad.

About

jq package installation/uninstallation to perform json parsing.

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