I am trying to update project tasks Assignee automatically by adding the Project team and their roles

I created a Project plan now I like to update the Assignees automatically based on adding the Project members and their roles
Looks like there is not a easy way of doing this