community.general.incus 连接 – 通过 Incus CLI 在 Incus 实例中运行任务。

注意

此连接插件是 community.general 集合 (版本 10.1.0) 的一部分。

如果您正在使用 ansible 包,您可能已经安装了此集合。它不包含在 ansible-core 中。要检查它是否已安装,请运行 ansible-galaxy collection list

要安装它,请使用: ansible-galaxy collection install community.general

要在剧本中使用它,请指定: community.general.incus

community.general 8.2.0 中的新增功能

概要

  • 使用 Incus CLI 运行命令或将文件放入/获取到现有的 Incus 实例。

参数

参数

注释

executable

字符串

在实例内使用的 shell。

默认值: "/bin/sh"

配置

  • 变量:ansible_executable

  • 变量:ansible_incus_executable

project

字符串

要使用的 Incus 项目名称(根据 incus project list)。

项目用于划分服务器上运行的实例。

默认值: "default"

配置

  • 变量:ansible_incus_project

remote

字符串

要使用的 Incus 远程名称(根据 incus remote list)。

远程用于从单个客户端访问多个服务器。

默认值: "local"

配置

  • 变量:ansible_incus_remote

remote_addr

字符串

实例标识符。

默认值: "inventory_hostname"

配置

  • 变量:inventory_hostname

  • 变量:ansible_host

  • 变量:ansible_incus_host

作者

  • Stéphane Graber (@stgraber)

提示

每个条目类型的配置项具有从低到高的优先级顺序。例如,列表中较低的变量将覆盖较高的变量。