darkwizard242.httpie
Ansible 角色:httpie
该角色用于在 Debian、Ubuntu 和 CentOS 系统上安装(默认) HTTPie 包,或在传递变量时卸载。HTTPie 是一个用户友好的命令行 HTTP 客户端,适用于 API 时代。
需求
无。
角色变量
可用的变量如下所示(位于 defaults/main.yml
):
变量列表:
httpie_app: httpie
httpie_desired_state: present
变量表:
变量 | 描述 |
---|---|
httpie_app | 定义要安装的应用程序,例如 httpie |
httpie_desired_state | 用于动态选择是安装(例如 present 或 latest )还是卸载(例如 absent )该包。默认为 present 。 |
依赖
无。
示例剧本
用于角色的默认行为(即安装 httpie 包)的 ansible 剧本。
- hosts: servers
roles:
- darkwizard242.httpie
用于自定义角色的行为(即安装最新的 httpie 包)的 ansible 剧本。
- hosts: servers
roles:
- darkwizard242.httpie
vars:
httpie_desired_state: latest
用于自定义角色的行为(即卸载 httpie 包)的 ansible 剧本。
- hosts: servers
roles:
- darkwizard242.httpie
vars:
httpie_desired_state: absent
许可证
作者信息
该角色由 Ali Muhammad 创建。
关于项目
Role for dynamically installing or uninstalling 'httpie', a great http client.
安装
ansible-galaxy install darkwizard242.httpie
许可证
mit
下载
4.5k
拥有者
Senior DevOps/CloudOps Engineer.
Dedicated to Automating everything I come across.
Love to work on and learn new technologies/tools everyday!