community.general.swdepot 模块 – 使用 swdepot 包管理器 (HP-UX) 管理软件包
注意
此模块是 community.general 集合(版本 10.1.0)的一部分。
如果您正在使用 ansible
包,您可能已经安装了此集合。 它不包含在 ansible-core
中。要检查是否已安装,请运行 ansible-galaxy collection list
。
要安装它,请使用: ansible-galaxy collection install community.general
。
要在 playbook 中使用它,请指定:community.general.swdepot
。
概要
将使用 swdepot 包管理器 (HP-UX) 安装、升级和删除软件包
参数
参数 |
注释 |
---|---|
从中安装或升级软件包的源存储库。 |
|
软件包名称。 |
|
是否安装 ( 选择
|
属性
属性 |
支持 |
描述 |
---|---|---|
支持: 完全 |
可以在 |
|
支持: 无 |
当处于 diff 模式时,将返回有关已更改的内容(或可能需要在 |
示例
- name: Install a package
community.general.swdepot:
name: unzip-6.0
state: present
depot: 'repository:/path'
- name: Install the latest version of a package
community.general.swdepot:
name: unzip
state: latest
depot: 'repository:/path'
- name: Remove a package
community.general.swdepot:
name: unzip
state: absent