“skipping: no hosts matched” issue with Vagrant and Ansible

前端 未结 9 1103

I have installed Vagrant, VirtualBox and Ansible and trying to run provision over one host but it always returns \"skipping: no hosts matched\"

The head of my playbook f

9条回答
  •  有刺的猬
    2021-02-05 03:12

    The first thing that jumps out at me is that the syntax on the head of your playbook file is incorrect, (it has extra dashes where it shouldn't). It should look like this instead:

    ---
    - hosts: webservers
      user: vagrant
      sudo: yes
    

提交回复
热议问题