community.general.bootc_manage 模块 – Bootc 切换和升级
注意
此模块是 community.general 集合 (版本 10.1.0) 的一部分。
如果您正在使用 ansible 包,则可能已安装此集合。它不包含在 ansible-core 中。要检查是否已安装,请运行 ansible-galaxy collection list。
要安装它,请使用:ansible-galaxy collection install community.general。
要在 playbook 中使用它,请指定:community.general.bootc_manage。
community.general 9.3.0 中的新增功能
概要
此模块管理
bootc的切换和升级。
参数
参数 |
注释 |
|---|---|
要切换到的镜像。 当 |
|
示例
# Switch to a different image
- name: Provide image to switch to a different image and retain the current running image
community.general.bootc_manage:
state: switch
image: "example.com/image:latest"
# Apply updates of the current running image
- name: Apply updates of the current running image
community.general.bootc_manage:
state: latest