https://github.com/darkwizard242/ansible-role-jq
Ansible role for Hugo. Available on Ansible Galaxy.
https://github.com/darkwizard242/ansible-role-jq
ansible ansible-galaxy ansible-role jq json-parser system
Last synced: 4 months ago
JSON representation
Ansible role for Hugo. Available on Ansible Galaxy.
- Host: GitHub
- URL: https://github.com/darkwizard242/ansible-role-jq
- Owner: darkwizard242
- License: mit
- Created: 2020-06-01T15:41:36.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-06-24T16:13:30.000Z (almost 2 years ago)
- Last Synced: 2025-08-22T05:50:56.990Z (10 months ago)
- Topics: ansible, ansible-galaxy, ansible-role, jq, json-parser, system
- Language: Python
- Homepage: https://galaxy.ansible.com/darkwizard242/jq
- Size: 27.3 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/darkwizard242/ansible-role-jq/actions?query=workflow%3Abuild-and-test) [](https://github.com/darkwizard242/ansible-role-jq/actions?query=workflow%3Arelease)  [](https://sonarcloud.io/dashboard?id=ansible-role-jq) [](https://sonarcloud.io/dashboard?id=ansible-role-jq) [](https://sonarcloud.io/dashboard?id=ansible-role-jq)  
# Ansible Role: jq
Role to install (_by default_) [jq](https://github.com/stedolan/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:
```yaml
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.
```yaml
- hosts: servers
roles:
- darkwizard242.jq
```
For customizing behavior of role (i.e. installation of latest **jq** package) in ansible playbooks.
```yaml
- 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.
```yaml
- hosts: servers
roles:
- darkwizard242.jq
vars:
jq_desired_state: absent
```
## License
[MIT](https://github.com/darkwizard242/ansible-role-jq/blob/master/LICENSE)
## Author Information
This role was created by [Ali Muhammad](https://www.alimuhammad.dev/).