Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/darkwizard242/ansible-role-httpie
Ansible role for HTTPie. Available on Ansible Galaxy.
https://github.com/darkwizard242/ansible-role-httpie
ansible ansible-galaxy ansible-role cli http-client httpie linux
Last synced: 22 days ago
JSON representation
Ansible role for HTTPie. Available on Ansible Galaxy.
- Host: GitHub
- URL: https://github.com/darkwizard242/ansible-role-httpie
- Owner: darkwizard242
- License: mit
- Created: 2020-12-19T20:53:09.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-06-24T14:29:04.000Z (5 months ago)
- Last Synced: 2024-10-07T02:42:13.874Z (about 1 month ago)
- Topics: ansible, ansible-galaxy, ansible-role, cli, http-client, httpie, linux
- Language: Python
- Homepage: https://galaxy.ansible.com/darkwizard242/httpie
- Size: 37.1 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![build-test](https://github.com/darkwizard242/ansible-role-httpie/workflows/build-and-test/badge.svg?branch=master)](https://github.com/darkwizard242/ansible-role-httpie/actions?query=workflow%3Abuild-and-test) [![release](https://github.com/darkwizard242/ansible-role-httpie/workflows/release/badge.svg)](https://github.com/darkwizard242/ansible-role-httpie/actions?query=workflow%3Arelease) ![Ansible Role](https://img.shields.io/ansible/role/d/darkwizard242/httpie) [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=ansible-role-httpie&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=ansible-role-httpie) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=ansible-role-httpie&metric=reliability_rating)](https://sonarcloud.io/dashboard?id=ansible-role-httpie) [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=ansible-role-httpie&metric=security_rating)](https://sonarcloud.io/dashboard?id=ansible-role-httpie) ![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/darkwizard242/ansible-role-httpie?label=release) ![GitHub repo size](https://img.shields.io/github/repo-size/darkwizard242/ansible-role-httpie?color=orange&style=flat-square)
# Ansible Role: httpie
Role to install (_by default_) [HTTPie](https://httpie.io/) package or uninstall (_if passed as var_) on **Debian**, **Ubuntu** and **CentOS** systems. **HTTPie** is a user-friendly command-line HTTP client for the API era.
## Requirements
None.
## Role Variables
Available variables are listed below (located in `defaults/main.yml`):
### Variables list:
```yaml
httpie_app: httpie
httpie_desired_state: present
```### Variables table:
Variable | Description
-------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------
httpie_app | Defines the app to install i.e. **httpie**
httpie_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 **httpie** package) in ansible playbooks.
```yaml
- hosts: servers
roles:
- darkwizard242.httpie
```For customizing behavior of role (i.e. installation of latest **httpie** package) in ansible playbooks.
```yaml
- hosts: servers
roles:
- darkwizard242.httpie
vars:
httpie_desired_state: latest
```For customizing behavior of role (i.e. un-installation of **httpie** package) in ansible playbooks.
```yaml
- hosts: servers
roles:
- darkwizard242.httpie
vars:
httpie_desired_state: absent
```## License
[MIT](https://github.com/darkwizard242/ansible-role-httpie/blob/master/LICENSE)
## Author Information
This role was created by [Ali Muhammad](https://www.alimuhammad.dev/).