Vagrantfile: add var to set ansible verbosity level (#8639)

Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
This commit is contained in:
Maciej Wereski 2022-03-22 14:11:44 +01:00 committed by GitHub
parent b2f9442aba
commit 21b71b38a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

3
Vagrantfile vendored
View file

@ -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