主机与 <host-ip> 的共享连接已关闭 - Ansible

问题描述 投票:0回答:1

我正在尝试向 Ansible Tower 添加新的 RHEL 8 主机。宿主变量如下,

`ansible_主机:

ansible_端口:22

ansible_python_解释器:/usr/bin/python2.7`

然后尝试通过 Ansible Tower 在上述主机上运行 playbook。我收到以下错误。

{

"_ansible_no_log": false,

"failed_modules": {

"setup": {

"failed": true,

"rc": 1,

"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",

"module_stderr": "Shared connection to <``host-ip> closed.\r\n",

"module_stdout": "\r\n"

}

},

"msg": "The following modules failed to execute: setup\n",

"changed": false,

"_ansible_verbose_override": true,

"ansible_facts": {}

}

任务:收集事实

模块:gather_facts

是的,我检查了Python版本和路径,它们就在那里。这是一个已知的问题?如何解决这个问题?

ansible ansible-inventory ansible-awx
1个回答
0
投票

您需要在 ansible_host 中有 IP 地址:

ansible_主机:10.10.10.10

© www.soinside.com 2019 - 2024. All rights reserved.