#NEWLINE# def get_role_groups( roles ) : #NEWLINE# #INDENT# 'Compiles a set of role prefixes' #NEWLINE# groups = set ( ) #NEWLINE# for role in roles : #NEWLINE# #INDENT# split = role [ 'name' ] . split ( '_' ) #NEWLINE# if ( split [ 0 ] != REPO [ 'EXCLUDE_ROLE_PREFIX' ] ) : #NEWLINE# #INDENT# groups . add ( split [ 0 ] ) #NEWLINE# #UNINDENT# #UNINDENT# return sorted ( groups )