def sync_roles(self):
self.log.debug('<STR_LIT>')<EOL>self.create_perm_vm_for_all_dag()<EOL>for config in self.ROLE_CONFIGS:<EOL><INDENT>role = config['<STR_LIT>']<EOL>vms = config['<STR_LIT>']<EOL>perms = config['<STR_LIT>']<EOL>self.init_role(role, vms, perms)<EOL><DEDENT>self.create_custom_dag_permission_view()<EOL>self.update_admin_perm_view()<EOL>self.clean_perms()<EOL>
1. Init the default role(Admin, Viewer, User, Op, public)
   with related permissions.
2. Init the custom role(dag-user) with related permissions.

:return: None.