Skip to content

Commit

Permalink
Vagrantfile: add var to set ansible verbosity level (kubernetes-sigs#…
Browse files Browse the repository at this point in the history
…8639)

Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
  • Loading branch information
maciejaszek authored and sakuraiyuta committed Apr 16, 2022
1 parent 3846e0c commit 6304c27
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6304c27

Please sign in to comment.