Added code to deploy script to wait for role to become ready