Revert "Fixed regex for getting role out of hostname"

This reverts commit 424ce4e32beadf6b9c1399e8e7ed8c2122751f51.