Is it possible to return a value from a provision script back to vagrant?
response = config.vm.provision( "shell", path: "script.sh" )
if response = 'ok'
do_something
end
I couldn't see anything in the vagrant docs describing how this could be done.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…