Split out group_vars
* Create controllers, hypervisors and libvirt groups for hosts * Create a 'deploy' playbook for all current constructive actions
This commit is contained in:
31
ansible/deploy.yml
Normal file
31
ansible/deploy.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
---
|
||||
- hosts: hypervisors
|
||||
tasks:
|
||||
- include_tasks: host_setup.yml
|
||||
|
||||
- hosts: controllers
|
||||
tasks:
|
||||
- include_tasks: schedule.yml
|
||||
vars:
|
||||
|
||||
- hosts: libvirt
|
||||
tasks:
|
||||
- name: Configure host as a Libvirt/QEMU/KVM hypervisor
|
||||
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 }}"
|
||||
|
||||
- name: Create Libvirt VMs
|
||||
include_tasks: create_libvirt_vms.yml
|
||||
vars:
|
||||
flavour: flav0
|
||||
name: "{{ item }}"
|
||||
Reference in New Issue
Block a user