Hi Uditha, Thanks for the reply. I've simplified the problem a bit (just removed the variable) and with removing the "" around the whole statement I managed to preserve the quotes. Unfortunately it didn't solve the problem:
waitfor: - result[0].vrfs.default.routes[\'1.2.3.4/30\'].hardwareProgrammed eq true The error was: ValueError: result[0].vrfs.default.routes['1.2.3.4/30'].hardwareProgrammed The issue is the same with double quotes around the IP address. On Tuesday, March 22, 2016 at 2:50:05 PM UTC+1, Uditha Desilva wrote: > > It may need more protection for those quotes -- perhaps this? > > - "result[0].vrfs.default.routes[\'{{ route }}\'].hardwareProgrammed > eq true" > >> >>>> -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/7f5a3e93-84cc-43c7-b11f-50ccb849971a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.