From 7a4e8a85420d7b99d01c6c959665de5d2069c682 Mon Sep 17 00:00:00 2001 From: David Kirwan Date: Thu, 2 Sep 2021 11:26:12 +0900 Subject: [PATCH] metrics-for-apps: fixing eror with when statement Signed-off-by: David Kirwan --- playbooks/manual/ocp4-place-ignitionfiles.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/playbooks/manual/ocp4-place-ignitionfiles.yml b/playbooks/manual/ocp4-place-ignitionfiles.yml index 90326554b6..e224f41485 100644 --- a/playbooks/manual/ocp4-place-ignitionfiles.yml +++ b/playbooks/manual/ocp4-place-ignitionfiles.yml @@ -65,7 +65,7 @@ tags: - ignition - repo - when ['os_control_stg', 'os_control'] | intersect(group_names) | count > 0 + when: ['os_control_stg', 'os_control'] | intersect(group_names) | count > 0 - name: == OCP KVM provisioning == Downloading RHCOS deploy files get_url: @@ -91,18 +91,18 @@ register: vm_exists tags: - kvm_deploy - when ['ocp_vms_stg', 'ocp_vms'] | intersect(group_names) | count > 0 + when: ['ocp_vms_stg', 'ocp_vms'] | intersect(group_names) | count > 0 - block: - name: ensure the lv for the guest is made lvol: lv={{ inventory_hostname }} vg={{ volgroup }} size={{ lvm_size }} state=present delegate_to: "{{ vmhost }}" tags: - kvm_deploy - when ['ocp_vms_stg', 'ocp_vms'] | intersect(group_names) | count > 0 + when: ['ocp_vms_stg', 'ocp_vms'] | intersect(group_names) | count > 0 - name: == OCP KVM provisioning == Deploying the OCP Virtual Guest[s] command: "{{ virt_install_command }}" delegate_to: "{{ vmhost }}" tags: - kvm_deploy - when ['ocp_vms_stg', 'ocp_vms'] | intersect(group_names) | count > 0 + when: ['ocp_vms_stg', 'ocp_vms'] | intersect(group_names) | count > 0 when: vm_exists is failed