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

前端 未结 9 1153

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:20

    I tried pointing the groups to default vagrant box and it worked. Refer https://gagor.pl/2015/12/ansible-on-vagrant-skipping-no-hosts-matched/

    ansible.groups = {
      'webservers' => ['default']
    }
    

提交回复
热议问题