From 5a0ccee1f8534f44b1b10addc586831bde4a3431 Mon Sep 17 00:00:00 2001 From: David Kirwan Date: Wed, 21 Jul 2021 13:40:02 +0100 Subject: [PATCH] metrics-for-apps: enable playbook on ocpworker nodes Signed-off-by: David Kirwan --- playbooks/manual/ocp4-place-ignitionfiles.yml | 23 +++++++++++++------ 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/playbooks/manual/ocp4-place-ignitionfiles.yml b/playbooks/manual/ocp4-place-ignitionfiles.yml index b450f7d61f..beb58eeae6 100644 --- a/playbooks/manual/ocp4-place-ignitionfiles.yml +++ b/playbooks/manual/ocp4-place-ignitionfiles.yml @@ -57,18 +57,27 @@ 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: == Hardware provisioning == Generating the tftp configuration boot file - template: - src: ocp_pxeboot.j2 - dest: /srv/web/infra/bigfiles/tftpboot/rhcos/{{ mac0 | lower | replace(":","-") }} - mode: 0755 - delegate_to: 127.0.0.1 - when: inventory_hostname in groups['ocp_workers_stg'] tags: - ignition - repo when: inventory_hostname in groups['os_control_stg'] + - name: == Hardware provisioning == Generating the tftp configuration boot file + template: + src: ocp_pxeboot.j2 + dest: /srv/web/infra/bigfiles/tftpboot/rhcos/{{ mac0 | lower | replace(":","-") }} + mode: 0755 + delegate_to: 127.0.0.1 + when: inventory_hostname in groups['ocp_workers_stg'] + + - name: == Hardware provisioning == Generating the tftp configuration boot file + template: + src: ocp_pxeboot.j2 + dest: /srv/web/infra/bigfiles/tftpboot/rhcos/{{ mac0 | lower | replace(":","-") }} + mode: 0755 + delegate_to: 127.0.0.1 + when: inventory_hostname in groups['ocp_workers_stg'] + - name: == OCP KVM provisioning == Checking OCP Virtual Guest exist[s] virt: name: "{{ inventory_hostname }}"