darkwizard242.jq
Ansible Role: jq
This role is for installing (by default) the jq package or uninstalling it (if specified) on Debian and EL family systems.
Requirements
No specific requirements.
Role Variables
Here are the available variables (found in defaults/main.yml
):
Variables list:
jq_app: jq
jq_desired_state: present
Variables table:
Variable | Description |
---|---|
jq_app | The name of the app to install, which is jq |
jq_desired_state | Options to set whether to install (like present or latest ) or uninstall (like absent ) the package. By default, it is set to present . |
Dependencies
No dependencies.
Example Playbook
To use the default action of the role (installing the jq package) in ansible playbooks:
- hosts: servers
roles:
- darkwizard242.jq
To change the role's action (like installing the latest jq package) in ansible playbooks:
- hosts: servers
roles:
- darkwizard242.jq
vars:
jq_desired_state: latest
To change the role's action (like uninstalling the jq package) in ansible playbooks:
- hosts: servers
roles:
- darkwizard242.jq
vars:
jq_desired_state: absent
License
Author Information
This role was created by Ali Muhammad.
Informazioni sul progetto
jq package installation/uninstallation to perform json parsing.
Installa
ansible-galaxy install darkwizard242.jq
Licenza
mit
Download
9.1k
Proprietario
Senior DevOps/CloudOps Engineer.
Dedicated to Automating everything I come across.
Love to work on and learn new technologies/tools everyday!