mirror of
https://github.com/openshift/installer.git
synced 2026-02-05 06:46:36 +01:00
Add the async to the ansible tasks starting vms, to have all vms starting in parallel Signed-off-by: Roberto Ciatti <rciatti@redhat.com>
23 lines
518 B
YAML
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
|