--- - name: wait for system template available cs_template: name: "{{ cs_common_template }}" state: absent cross_zones: yes template_filter: all register: template check_mode: true until: template is changed retries: 20 delay: 5 - name: smoke test instance cs_instance: name: smoke-test-vm template: "{{ cs_common_template }}" service_offering: "{{ cs_common_service_offering }}" zone: "{{ cs_common_zone_adv }}" register: instance until: instance is successful retries: 20 delay: 5