metrics-for-apps: enable playbook on ocpworker nodes

Signed-off-by: David Kirwan <dkirwan@redhat.com>
This commit is contained in:
David Kirwan 2021-07-21 13:40:02 +01:00
parent a4996141de
commit 5a0ccee1f8

View file

@ -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 }}"