I am new to ansible and followed the instruction here which gives two notations for referencing key-value dictionaries.
ansible
foo[\'field1\'] foo.fiel