使用ansible进行部署:没有这样的文件或目录-“ / usr / local / bin / ssh-bash”

时间:2019-12-17 10:48:47

标签: ansible ansible-2.x

我正在将Ansible 2.4.0.0部署到all-inkl.com。我收到一个奇怪的错误:

System info:
  Ansible 2.4.0.0; Linux
  Trellis 1.0.3: April 30th, 2019
---------------------------------------------------
[Errno 2] No such file or directory
The full traceback is:
  File "/tmp/ansible_bpaYEe/ansible_modlib.zip/ansible/module_utils/basic.py", line 2744, in run_command
    cmd = subprocess.Popen(args, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 394, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
    raise child_exception

fatal: [staging_hostname]: FAILED! => {
    "changed": false, 
    "cmd": "/usr/local/bin/ssh-bash -c 'ps -p 1 -o comm|tail -n 1'", 
    "failed": true, 
    "invocation": {
        "module_args": {
            "fact_path": "/etc/ansible/facts.d", 
            "filter": "*", 
            "gather_subset": [
                "all"
            ], 
            "gather_timeout": 10
        }
    }, 
    "rc": 2
}

同一部署可以毫无问题地应用于其他服务器。

我不知道如何调试,因为我找不到有关“ / usr / local / bin / ssh-bash”命令可能来自的信息。我的其他服务器不执行此操作。

有人对如何找出错误之处有想法吗?

0 个答案:

没有答案