From 1accb487e6d865dacc0befde9cd0dc07d012c4b3 Mon Sep 17 00:00:00 2001 From: vincent Date: Sun, 29 Oct 2023 15:29:20 +0100 Subject: [PATCH] vagrant: bootstrap per VM --- Vagrantfile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index 66e0191..dc86ff1 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -22,6 +22,12 @@ Vagrant.configure('2') do |config| libvirt.memory = 1024 libvirt.cpus = 2 end + c.vm.provision "ansible" do |bootstrap| + bootstrap.playbook= "ansible/playbooks/bootstrap.yml" + bootstrap.galaxy_roles_path= "ansible/roles" + bootstrap.limit="oscar-dev" + bootstrap.extra_vars = { ansible_python_interpreter:"/usr/bin/python3" } + end end config.vm.define "merlin-dev" do |c| @@ -63,6 +69,12 @@ Vagrant.configure('2') do |config| libvirt.memory = 1024 libvirt.cpus = 2 end + c.vm.provision "ansible" do |bootstrap| + bootstrap.playbook= "ansible/playbooks/bootstrap.yml" + bootstrap.galaxy_roles_path= "ansible/roles" + bootstrap.limit="gerard-dev" + bootstrap.extra_vars = { ansible_python_interpreter:"/usr/bin/python3" } + end end config.vm.define "nas-dev" do |c| @@ -84,7 +96,7 @@ Vagrant.configure('2') do |config| c.vm.provision "ansible" do |bootstrap| bootstrap.playbook= "ansible/playbooks/bootstrap.yml" bootstrap.galaxy_roles_path= "ansible/roles" - bootstrap.limit="all" + bootstrap.limit="nas-dev" bootstrap.extra_vars = { ansible_python_interpreter:"/usr/bin/python3" } end end