Vagrant provision live output

前端 未结 3 1482
一向
一向 2021-02-07 02:58

Is there a way to get Vagrant to display the output of the provisioning tool as it runs, rather than just at the end? I\'m using the Ansible plugin if that matters.

Vagr

3条回答
  •  暖寄归人
    2021-02-07 03:15

    I used Vagrant 1.7.4 and ansible.verbosity is no longer available (since 1.5). It's the right way to do:

    Vagrant.configure("2") do |config|
      config.vm.provision "ansible" do |ansible|
        ansible.playbook = "provisioning/playbook.yml"
        ansible.verbose = "vvv"
      end
    end
    

提交回复
热议问题