gantsign.postman
Ansible Role: Postman
This role helps you download and install the Postman tool for working with HTTP.
Requirements
- Ansible version 2.9 or higher
- A Linux system, specifically:
- Debian-based systems
- Ubuntu versions:
- Bionic (18.04)
- Focal (20.04)
- Ubuntu versions:
- Other versions may work but haven't been tested.
- Debian-based systems
Role Variables
You can customize the following variables (default values are shown):
# The URL to download Postman from
postman_redis_url: 'https://dl.pstmn.io/download/latest/linux?arch=64'
# The directory where Postman will be installed
postman_install_dir: '/opt/Postman'
# The directory for storing files downloaded for installation
postman_download_dir: "{{ x_ansible_download_dir | default(ansible_env.HOME + '/.ansible/tmp/downloads') }}"
Example Playbook
Here is how to use the role in a playbook:
- hosts: servers
roles:
- role: gantsign.postman
More Roles From GantSign
Check out more roles by GantSign on Ansible Galaxy.
Development & Testing
This project uses Molecule for development and testing. The role is unit tested with Testinfra and pytest.
To develop or test, you need to install:
To simplify installation, this project includes Molecule Wrapper. This is a script that installs Molecule and its dependencies (except the Linux system) and runs Molecule commands for you.
To test this role with Molecule Wrapper, run this command from the project folder:
./moleculew test
Note: Some dependencies require sudo
permission for installation.
License
MIT
Author Information
John Freeman
GantSign Ltd. Company No. 06109112 (registered in England)
Role for installing the Postman HTTP tool.
ansible-galaxy install gantsign.postman