--- - name: create gretunnel test script on gateways template: src="test_gretunnel_source_gw_target_bb.j2" dest="/tmp/test_gretunnel_source_gw_target_bb.sh" when: group_names[0] | match("domaene-.*") - name: execute gretunnel test script on gateways command: sh /tmp/test_gretunnel_source_gw_target_bb.sh when: group_names[0] | match("domaene-.*")