community.general.homebrew_tap 模块 – Tap 一个 Homebrew 仓库
注意
此模块是 community.general 集合 (版本 10.1.0) 的一部分。
如果您正在使用 ansible
包,您可能已经安装了这个集合。它不包含在 ansible-core
中。要检查是否已安装,请运行 ansible-galaxy collection list
。
要安装它,请使用:ansible-galaxy collection install community.general
。您需要其他要求才能使用此模块,请参阅 要求 以了解详细信息。
要在 playbook 中使用它,请指定:community.general.homebrew_tap
。
概要
Tap 外部 Homebrew 仓库。
要求
在执行此模块的主机上需要以下要求。
homebrew
参数
参数 |
注释 |
---|---|
要 Tap 的 GitHub 用户/组织仓库。 |
|
以 默认值: |
|
仓库的状态。 选择
|
|
要 Tap 的仓库的可选 git URL。该 URL 不被假定为在 GitHub 上,并且协议不必是 HTTP。git 可以处理的任何位置和协议都可以。 当提供此选项时, |
属性
属性 |
支持 |
描述 |
---|---|---|
支持: 完全支持 |
可以在 |
|
支持: 不支持 |
当处于 diff 模式时,将返回有关已更改内容(或可能需要在 |
示例
- name: Tap a Homebrew repository, state present
community.general.homebrew_tap:
name: homebrew/dupes
- name: Tap a Homebrew repository, state absent
community.general.homebrew_tap:
name: homebrew/dupes
state: absent
- name: Tap a Homebrew repository, state present
community.general.homebrew_tap:
name: homebrew/dupes,homebrew/science
state: present
- name: Tap a Homebrew repository using url, state present
community.general.homebrew_tap:
name: telemachus/brew
url: 'https://bitbucket.org/telemachus/brew'