ansible command 连接问题 如何解决 5C

图片说明

2个回答

[root@ansible src]# ansible-playbook -u"centos" --private-key=/home/rsa.key /home/fsp/del_pb.yml

PLAY [all]********************************************************************

GATHERING FACTS***************************************************************
fatal: [172.16.5.122] => failed totransfer file to Please login as the user "centos" rather than theuser "root"./setup:

Received message too long 1349281121

fatal: [172.16.5.120] => failed totransfer file to Please login as the user "centos" rather than theuser "root"./setup:

Received message too long 1349281121

fatal: [172.16.5.109] => failed totransfer file to Please login as the user "centos" rather than theuser "root"./setup:

Received message too long 1349281121

TASK: [whoami]****************************************************************
FATAL: no hosts matched or all hosts havealready failed -- aborting

PLAY RECAP********************************************************************
to retry, use: --limit @/root/del_pb.retry

172.16.5.109 : ok=0 changed=0 unreachable=1 failed=0

172.16.5.120 : ok=0 changed=0 unreachable=1 failed=0

172.16.5.122 : ok=0 changed=0 unreachable=1 failed=0

#include

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问