code: def print_role(role, detailed=True):
      
      if detailed:
          print(colors.yellow(role.get('fullname')))
      else:
          print("  Role: {0}".format(role.get('fullname')))
      if detailed:
          print("    description: {0}".format(role.get('description')))
      if 'default_attributes' in role:
          print("    default_attributes:")
          _pprint(role['default_attributes'])
      if 'override_attributes' in role:
          print("    override_attributes:")
          _pprint(role['override_attributes'])
      if detailed:
          print("    run_list: {0}".format(role.get('run_list')))
      print("")
docs: Pretty prints the given role