Dynamicaly change roles of a node

is it possible that changing a node’s role on the fly?

No that is not possible, the roles must be known up front.

Thanks for the reply