darkwizard242.httpie

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

Ansible Role: httpie

Role to install (by default) HTTPie 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:

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.

- hosts: servers
  roles:
    - darkwizard242.httpie

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

- 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.

- hosts: servers
  roles:
    - darkwizard242.httpie
  vars:
    httpie_desired_state: absent

License

MIT

Author Information

This role was created by Ali Muhammad.

About

Role for dynamically installing or uninstalling 'httpie', a great http client.

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