def oo_combine_key_value(data, joiner='='):
 if (not isinstance(data, list)):
  raise errors.AnsibleFilterError('|failed expects first param is a list')
 rval = []
 for item in data:
  rval.append(('%s%s%s' % (item['key'], joiner, item['value'])))
 return rval

def oo_combine_key_value ( data , joiner = '=' ) : if ( not isinstance ( data , list ) ) : raise errors . AnsibleFilterError ( '|failed expects first param is a list' ) rval = [ ] for item in data : rval . append ( ( '%s%s%s' % ( item [ 'key' ] , joiner , item [ 'value' ] ) ) ) return rval
take a list of dict in the form of { key: value} and arrange them as a list of strings [key=value] .