community.general.lxc 连接 – 通过 lxc python 库在 lxc 容器中运行任务
注意
此连接插件是 community.general 集合 (版本 10.1.0) 的一部分。
如果您使用的是 ansible
包,则可能已经安装了此集合。它不包含在 ansible-core
中。要检查它是否已安装,请运行 ansible-galaxy collection list
。
要安装它,请使用: ansible-galaxy collection install community.general
。
要在 playbook 中使用它,请指定: community.general.lxc
。
概要
使用 lxc python 库运行命令或将文件放入/取出现有 lxc 容器。
参数
参数 |
注释 |
---|---|
shell 可执行文件 默认值: 配置
|
|
容器标识符 默认值: 配置
|