vagrant will not run an ansible play if the vm do not match the hosts line in the play
Roy
Posted on September 21, 2020
---
- hosts: localhost
connection: local
tasks:
- debug: msg="Please work, Vagrant!"
I use a playbook with content as above in vagrant provision, but when run vagrant, it says
skipping: no hosts matched
so it is run ansible-playbook -i <vm-host-name>, playbook.yml
, if the target do not match hosts:
in the play, the play will be skipped
π πͺ π
π©
Roy
Posted on September 21, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
cloudcomputing I reduced to just 2 steps the deployment of a LAMP stack + Laravel app using Bash Shell Scripting, Vagrant, and Ansible.
April 26, 2024