ansible - Ansible 2.8+ 同步操作插件不适用于自定义 ssh_executable
问题描述
我最近将 ansible 从 2.3 版升级到 2.8 版,同步模块开始抛出以下错误:
fatal: [my.host.com]: FAILED! => {
"msg": "Could not find the shell plugin required (my_custom_ssh_executable)."
}
我一直在 ansible.cfg 中使用自定义 ssh_executable,它在带有同步模块的 ansible 2.3 中运行良好。在 2.8 版本中,只有同步模块不起作用,其他模块使用相同的自定义 ssh_executable 可以正常工作。
我做了一些调试,看起来错误发生在同步操作插件中,而不是模块本身。
我还尝试了最新的 ansible 版本 2.9.4 并且发生了同样的错误。
解决方案
推荐阅读
- python - 如何从 ip link show 命令拆分行?
- sql-server - 表格中的两行变成单行
- azure - Azure 是否对应用服务数量收费
- database - PostgreSQL 中表锁和行锁如何交互?
- docker - 使用 Dockerfile 安装自制软件
- javascript - 为什么我使用小写时正则表达式会失败?
- vba - 如何修复无法将pptm文件保存到ppam,
- php - 根据值扩展 2 个数组
- angular - 如何访问多个下拉列表中的每个下拉列表
- reactjs - 我们在哪里以及为什么使用 ReactDOMServer.renderToString()?我们是否在今天的 react 版本中使用了这种方法?