0

使用模块连接到托管主机(netapp 设备)command时,出现以下错误。

TASK [Gathering Facts] *********************************************************
fatal: [10.20.30.40]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: X11 forwarding request failed", "unreachable": true}

如何ssh使用 ansible 配置 / ansible-playbook 命令行选项设置“ForwardX11 no”。

我不想更改用户目录中的 ssh 设置。

4

1 回答 1

0

尝试在命令行中传递 ssh 参数ansible-playbook --ssh-common-args='-o ForwardX11=no' <rest_of_the_commands>

于 2020-12-03T12:46:24.287 回答