Perform Libvirt host setup after Tenks host setup

This commit is contained in:
Will Miller
2018-08-28 11:10:37 +00:00
parent b2f0be9d18
commit 87e4e5e8da

View File

@@ -3,6 +3,21 @@
tasks:
- include_tasks: host_setup.yml
- hosts: libvirt
tasks:
- include_role:
name: stackhpc.libvirt-host
vars:
libvirt_host_pools:
- name: "{{ libvirt_pool_name }}"
type: "{{ libvirt_pool_type }}"
capacity: "{{ libvirt_pool_capacity }}"
path: "{{ libvirt_pool_path }}"
mode: "{{ libvirt_pool_mode }}"
owner: "{{ libvirt_pool_owner }}"
group: "{{ libvirt_pool_group }}"
libvirt_host_require_vt: "{{ libvirt_require_vt }}"
- hosts: localhost
tasks:
- include_tasks: schedule.yml
@@ -26,19 +41,6 @@
- hosts: libvirt
tasks:
- include_role:
name: stackhpc.libvirt-host
vars:
libvirt_host_pools:
- name: "{{ libvirt_pool_name }}"
type: "{{ libvirt_pool_type }}"
capacity: "{{ libvirt_pool_capacity }}"
path: "{{ libvirt_pool_path }}"
mode: "{{ libvirt_pool_mode }}"
owner: "{{ libvirt_pool_owner }}"
group: "{{ libvirt_pool_group }}"
libvirt_host_require_vt: "{{ libvirt_require_vt }}"
- include_tasks: libvirt_create_vms.yml
vars:
# Allocations are stored in the localhost's vars.