Thanks. It works but only if I swap with_items: "{{groups}}" for with_items: "{{grouplist}}"
and call my vars grouplist also. Something it didnt like about calling those 2 groups > -- 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/c7b82126-4c57-4b27-974d-53eddfdff065%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.