From ab3345d6286e0827c9a0d9e040cc42c716ff8de6 Mon Sep 17 00:00:00 2001 From: David Kirwan Date: Wed, 21 Jul 2021 08:53:22 +0100 Subject: [PATCH] metrics: Create control plane volumes prior to vms Signed-off-by: David Kirwan --- playbooks/manual/ocp4-place-ignitionfiles.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/playbooks/manual/ocp4-place-ignitionfiles.yml b/playbooks/manual/ocp4-place-ignitionfiles.yml index 345b8bf648..6a15c2f15f 100644 --- a/playbooks/manual/ocp4-place-ignitionfiles.yml +++ b/playbooks/manual/ocp4-place-ignitionfiles.yml @@ -73,6 +73,10 @@ - kvm_deploy when: inventory_hostname in groups['ocp_controlplane_stg'] - block: + - name: ensure the lv for the guest is made + lvol: lv={{ inventory_hostname }} vg={{ volgroup }} size={{ lvm_size }} state=present + delegate_to: "{{ vmhost }}" + when: inventory_hostname in groups['ocp_controlplane_stg'] - name: == OCP KVM provisioning == Deploying the OCP Virtual Guest[s] command: "{{ virt_install_command }}" delegate_to: "{{ vmhost }}"