首页 > 解决方案 > 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 并且发生了同样的错误。

标签: ansiblesynchronize

解决方案


推荐阅读