Gather hypervisor facts in parallel pre-scheduling
This commit is contained in:
@@ -18,6 +18,10 @@
|
||||
group: "{{ libvirt_pool_group }}"
|
||||
libvirt_host_require_vt: "{{ libvirt_require_vt }}"
|
||||
|
||||
# Ensure we have facts about all hypervisors before scheduling begins.
|
||||
- hosts: hypervisors
|
||||
gather_facts: true
|
||||
|
||||
- hosts: localhost
|
||||
tasks:
|
||||
- include_tasks: schedule.yml
|
||||
|
||||
@@ -1,11 +1,4 @@
|
||||
---
|
||||
# Ensure we have facts about all hypervisors before scheduling begins.
|
||||
- name: Gather facts from hypervisors
|
||||
setup:
|
||||
delegate_to: "{{ item }}"
|
||||
delegate_facts: true
|
||||
loop: "{{ groups['hypervisors'] }}"
|
||||
|
||||
# Creates a dict mapping each hypervisor's hostname to its hostvars, to be used
|
||||
# during scheduling.
|
||||
- name: Collect hypervisor hostvars
|
||||
|
||||
Reference in New Issue
Block a user