How to run an ansible playbook on a specific vagrant host
问题 I have a Vagrantfile which creates 3 servers. I have two ansible playbooks. playbook1 should be executed on every server first. The second playbook2 should only be executed on server1 and not on server2 and server3. How can I manage this with my Vagrantfile? Vagrant.configure("2") do |config| config.vm.box = "ubuntu/bionic64" config.vm.define "server1" do |server1| // end config.vm.define "server2" do |server2| // end config.vm.define "server3" do |server3| // end config.vm.provision "ansible