gantsign.postman

Ansible 角色:Postman

测试 Ansible Galaxy 许可证

此角色用于下载和安装Postman HTTP工具。

要求

  • Ansible >= 2.9

  • Linux 发行版

    • Debian 家族

      • Ubuntu

        • Bionic (18.04)
        • Focal (20.04)
    • 注意:其他版本可能也能工作,但未经过测试。

角色变量

以下变量将改变此角色的行为(默认值如下所示):

# 下载 Postman 可分发包的 URL
postman_redis_url: 'https://dl.pstmn.io/download/latest/linux?arch=64'

# Postman 分发版的基础安装目录
postman_install_dir: '/opt/Postman'

# 存储用于 Postman 安装下载的文件的目录
postman_download_dir: "{{ x_ansible_download_dir | default(ansible_env.HOME + '/.ansible/tmp/downloads') }}"

示例 Playbook

- hosts: servers
  roles:
     - role: gantsign.postman

GantSign 的更多角色

您可以在Ansible Galaxy上找到更多来自 GantSign 的角色。

开发与测试

该项目使用Molecule来帮助开发和测试;该角色使用Testinfrapytest进行单元测试。

要进行开发或测试,您需要安装以下内容:

由于以上内容的安装可能比较麻烦,因此该项目包括Molecule Wrapper。Molecule Wrapper 是一个 shell 脚本,用于安装 Molecule 及其依赖项(除 Linux 外),然后执行您传递的命令。

要使用 Molecule Wrapper 测试此角色,请从项目根目录运行以下命令:

./moleculew test

注意:某些依赖项需要 sudo 权限才能安装。

许可证

MIT

作者信息

John Freeman

GantSign Ltd. 公司编号:06109112(在英格兰注册)

关于项目

Role for installing the Postman HTTP tool.

安装
ansible-galaxy install gantsign.postman
许可证
mit
下载
84k
拥有者