Extract the role to search for forge server into an attribute

To have the server running in a dev environment and searching for a
different role, we need to extract this into an attribute.