Bash command used for running provisioning script via SSH is masking scripts's exit code
Exit codes returned from provisioning templates are ignored because of sending results through pipe to command tee.
Fixes #11987 - Check exit code of deployment scripts
This commit fixes checking exit codes returned from provisioning templates, which were ignored
because of sending results through pipe to command tee. Also adds optional host deleting if deployment
fails because of non zero exit code. This can be configured by setting clean_up_failed_deployment