containers.podman.podman_network_info 模块 – 收集 Podman 网络信息
注意
此模块是 containers.podman 集合 (版本 1.16.2) 的一部分。
如果您使用的是 ansible
包,则可能已经安装了此集合。它不包含在 ansible-core
中。要检查是否已安装,请运行 ansible-galaxy collection list
。
要安装它,请使用:ansible-galaxy collection install containers.podman
。要使用此模块,您需要其他要求,请参阅 要求 获取详细信息。
要在 playbook 中使用它,请指定:containers.podman.podman_network_info
。
containers.podman 1.0.0 中的新增功能
概要
使用 podman inspect 命令收集 Podman 网络信息。
要求
执行此模块的主机需要以下要求。
主机上安装了 Podman
参数
参数 |
注释 |
---|---|
如果 默认值: |
|
网络名称 |
示例
- name: Gather info about all present networks
containers.podman.podman_network_info:
- name: Gather info about specific network
containers.podman.podman_network_info:
name: podman
返回值
常用返回值已在 此处 记录,以下是此模块独有的字段
键 |
描述 |
---|---|
来自所有网络或指定网络的详细信息 返回: 始终 示例: |