1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

cloudstack: ci: wait for sys template available (#78)

* cloudstack: ci: wait for sys template available

* gather all templates

* smoke test VM
This commit is contained in:
René Moser 2020-03-31 16:08:51 +02:00 committed by GitHub
parent 74d83d8e94
commit 0205adef24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,23 @@
---
- 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