From 390d31a6ab777a061213f619f21a4392ee851b98 Mon Sep 17 00:00:00 2001 From: David Kirwan Date: Tue, 20 Jul 2021 11:03:38 +0100 Subject: [PATCH] metrics: ensure host is in the ocp_stg group before running task Signed-off-by: David Kirwan --- playbooks/manual/ocp4-place-ignitionfiles.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/playbooks/manual/ocp4-place-ignitionfiles.yml b/playbooks/manual/ocp4-place-ignitionfiles.yml index 484cad9dc0..345b8bf648 100644 --- a/playbooks/manual/ocp4-place-ignitionfiles.yml +++ b/playbooks/manual/ocp4-place-ignitionfiles.yml @@ -57,11 +57,6 @@ state: link src: "/var/www/html/rhcos/rhcos-{{ rhcos_version }}-x86_64-metal.x86_64.raw.gz" dest: "/var/www/html/rhcos/rhcos-metal.raw" - - name: == OCP KVM provisioning == Creating needed treeinfo for virt-install --location - template: - src: ocp-treeinfo.j2 - dest: /var/www/html/rhcos/.treeinfo - mode: 0644 tags: - ignition - repo @@ -72,11 +67,11 @@ name: "{{ inventory_hostname }}" state: running ignore_errors: yes - no_log: True delegate_to: "{{ vmhost }}" register: vm_exists tags: - kvm_deploy + when: inventory_hostname in groups['ocp_controlplane_stg'] - block: - name: == OCP KVM provisioning == Deploying the OCP Virtual Guest[s] command: "{{ virt_install_command }}"