containers.podman.podman_tag 模块 – 为本地镜像添加额外的名称
注意
此模块是 containers.podman 集合(版本 1.16.2)的一部分。
如果您使用的是 ansible 包,您可能已经安装了这个集合。 它不包含在 ansible-core 中。 要检查是否已安装,请运行 ansible-galaxy collection list。
要安装它,请使用:ansible-galaxy collection install containers.podman。 您需要进一步的要求才能使用此模块,请参阅 要求 了解详细信息。
要在 playbook 中使用它,请指定:containers.podman.podman_tag。
概要
- podman tag 为本地存储的镜像添加一个或多个额外的名称。 
要求
以下要求需要在执行此模块的主机上满足。
- 主机上安装了 Podman 
参数
| 参数 | 注释 | 
|---|---|
| 如果  默认值:  | |
| 要标记的镜像。 | |
| 其他名称。 | 
示例
# What modules does for example
- containers.podman.podman_tag:
    image: docker.io/continuumio/miniconda3
    target_names:
      - miniconda3
      - miniconda
