6
我無法找到實際問題的地方。我下面的劇本執行我的私有密鑰:無法通過SSH連接到主機通過SSH與流行與Ansible Playbook
---
- hosts: localhost
gather_facts: false
sudo: yes
tasks:
- name: Install package libpcre3-dev
apt: name=libpcre3-dev state=latest
但我得到下面的錯誤流浪Ubuntu的機器上:
PLAY [localhost]
*********************************************************************
TASK [Install package ]
***************************************************
fatal: [vagrant]: UNREACHABLE! => {"changed": false, "msg": "Failed to
connect to the host via ssh: Permission denied (publickey,password).\r\n",
"unreachable": true}
to retry, use: --limit @/home/vagrant/playbooks/p1.retry
PLAY RECAP
*********************************************************************
vagrant : ok=0 changed=0 unreachable=1 failed=0
這可能是什麼可能的建議?
正確的。我在playbook中添加了連接:local line,現在它完美地工作了。謝謝..!!! – Bhotu