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:
Will Miller
2018-08-21 16:57:25 +00:00
parent 72a17aabd1
commit 2a04903e24
6 changed files with 47 additions and 13 deletions

31
ansible/deploy.yml Normal file
View 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 }}"