From f89a9c0764d8620440b822cd29e141cae4a70ac8 Mon Sep 17 00:00:00 2001 From: Maciej Wereski Date: Mon, 21 Mar 2022 14:34:31 +0100 Subject: [PATCH] Vagrantfile: add var to set ansible verbosity level Signed-off-by: Maciej Wereski --- Vagrantfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Vagrantfile b/Vagrantfile index 5f84143eeec..74da40e4a07 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -73,6 +73,8 @@ $disk_size ||= "20GB" $local_path_provisioner_enabled ||= false $local_path_provisioner_claim_root ||= "/opt/local-path-provisioner/" $libvirt_nested ||= false +# boolean or string (e.g. "-vvv") +$ansible_verbosity ||= false $playbook ||= "cluster.yml" @@ -244,6 +246,7 @@ Vagrant.configure("2") do |config| if i == $num_instances node.vm.provision "ansible" do |ansible| ansible.playbook = $playbook + ansible.verbose = $ansible_verbosity $ansible_inventory_path = File.join( $inventory, "hosts.ini") if File.exist?($ansible_inventory_path) ansible.inventory_path = $ansible_inventory_path