import itertools


def convert_str(inStr):
  """
    One of the quirks with ansible is the use of several different
    object notations, sometimes even one embedded within another...
    This function modifies the string formatting so we can read it
    in as a variable.
  """
  l = [i.split("=") for i in inStr.split(" ")]
  res_arr = [i.replace('"', "") for i in list(itertools.chain(*l))]
  return dict(zip(res_arr[::2], res_arr[1::2]))