1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-05 06:46:36 +01:00
Files
installer/upi/ovirt/workers.yml
Roberto Ciatti 4084586f8a Start vms with async
Add the async to the ansible tasks starting vms,
to have all vms starting in parallel

Signed-off-by: Roberto Ciatti <rciatti@redhat.com>
2020-07-30 00:35:47 +02:00

23 lines
518 B
YAML

---
- hosts: localhost
connection: local
gather_facts: false
tasks:
- import_tasks: common-auth.yml
- name: Start workers VM
ovirt_vm:
auth: "{{ ovirt_auth }}"
cluster: "{{ item.profile.cluster }}"
name: "{{ item.name }}"
state: running
cloud_init_persist: True
cloud_init:
custom_script: "{{ lookup('file', ocp.assets_dir+'/'+item.ocp_type+'.ign') | string }}"
with_items:
- "{{ vms }}"
when: item.ocp_type == 'worker'
async: 60
poll: 0