Taking "CanDeploy" role into account in the script.