I use Vagrant 1.8.5
在 2016年7月25日星期一 UTC+8下午2:43:54,Guofeng Zhang写道:
>
> Hi,
>
> I follow "Ansible Parallel Execution from a Guest", created
> "Vagrantfile"file, "inventory" file, "ansible.cfg" file, and placed them on
> the same directory (The Vagrant project directory).
>
> But after runs "vagrant up", I go the following output:
>
> cd /vagrant && PYTHONUNBUFFERED=1 ANSIBLE_NOCOLOR=true ansible-playbook
> --limit="all" --inventory-file=inventory --sudo -v playbook.yml
> Using /vagrant/ansible.cfg as config file
>
> PLAY [print out operating system]
> **********************************************
>
> TASK [setup]
> *******************************************************************
> fatal: [node2]: UNREACHABLE! => {"changed": false, "msg": "Failed to
> connect to the host via ssh.", "unreachable": true}
> fatal: [node1]: UNREACHABLE! => {"changed": false, "msg": "Failed to
> connect to the host via ssh.", "unreachable": true}
> ok: [controller]
>
> TASK [debug]
> *******************************************************************
> ok: [controller] => {
> "ansible_distribution": "Ubuntu"
> }
> to retry, use: --limit @playbook.retry
>
> PLAY RECAP
> *********************************************************************
> controller : ok=2 changed=0 unreachable=0 failed=0
> node1 : ok=0 changed=0 unreachable=1 failed=0
> node2 : ok=0 changed=0 unreachable=1 failed=0
>
> Ansible failed to complete successfully. Any error output should be
> visible above. Please fix these errors and try again.
>
> I cannot figure out why node1 and node2 are unreachable. Your advices are
> appreciated.
>
> This is the playbook file:
> - name: print out operating system
> hosts: all
> gather_facts: True
> tasks:
> - debug: var=ansible_distribution
>
>
>
>
>
>
--
This mailing list is governed under the HashiCorp Community Guidelines -
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of
those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vagrant-up/77ff81d5-61c2-485b-b8cd-c48712f61e90%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.