Alex pointed out your first mistake, but you also are using moustaches in 'when' when you shouldn't
when: wc2env == 'prod' conditionals are already in an implied template context. -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CACVha7eftv4CXTYy9f09TdNTHNDmwsYHY%2BoDy70hWYTxA8dMcw%40mail.gmail.com.