metrics-for-apps: attempting to target specific hosts in tasks
Signed-off-by: David Kirwan <dkirwan@redhat.com>
This commit is contained in:
parent
be3ff19ce2
commit
534ce4dd15
1 changed files with 4 additions and 4 deletions
|
@ -65,7 +65,7 @@
|
||||||
tags:
|
tags:
|
||||||
- ignition
|
- ignition
|
||||||
- repo
|
- repo
|
||||||
when: "{%['os_control_stg', 'os_control'] | intersect(group_names) | count > 0%}"
|
when: inventory_hostname in groups['os_control_stg'] or inventory_hostname in groups['os_control']
|
||||||
|
|
||||||
- name: == OCP KVM provisioning == Downloading RHCOS deploy files
|
- name: == OCP KVM provisioning == Downloading RHCOS deploy files
|
||||||
get_url:
|
get_url:
|
||||||
|
@ -91,18 +91,18 @@
|
||||||
register: vm_exists
|
register: vm_exists
|
||||||
tags:
|
tags:
|
||||||
- kvm_deploy
|
- kvm_deploy
|
||||||
when: "{%['ocp_vms_stg', 'ocp_vms'] | intersect(group_names) | count > 0%}"
|
when: inventory_hostname in groups['ocp_vms_stg'] or inventory_hostname in groups['ocp_vms']
|
||||||
- block:
|
- block:
|
||||||
- name: ensure the lv for the guest is made
|
- name: ensure the lv for the guest is made
|
||||||
lvol: lv={{ inventory_hostname }} vg={{ volgroup }} size={{ lvm_size }} state=present
|
lvol: lv={{ inventory_hostname }} vg={{ volgroup }} size={{ lvm_size }} state=present
|
||||||
delegate_to: "{{ vmhost }}"
|
delegate_to: "{{ vmhost }}"
|
||||||
tags:
|
tags:
|
||||||
- kvm_deploy
|
- kvm_deploy
|
||||||
when: "{%['ocp_vms_stg', 'ocp_vms'] | intersect(group_names) | count > 0%}"
|
when: inventory_hostname in groups['ocp_vms_stg'] or inventory_hostname in groups['ocp_vms']
|
||||||
- name: == OCP KVM provisioning == Deploying the OCP Virtual Guest[s]
|
- name: == OCP KVM provisioning == Deploying the OCP Virtual Guest[s]
|
||||||
command: "{{ virt_install_command }}"
|
command: "{{ virt_install_command }}"
|
||||||
delegate_to: "{{ vmhost }}"
|
delegate_to: "{{ vmhost }}"
|
||||||
tags:
|
tags:
|
||||||
- kvm_deploy
|
- kvm_deploy
|
||||||
when: "{%['ocp_vms_stg', 'ocp_vms'] | intersect(group_names) | count > 0%}"
|
when: inventory_hostname in groups['ocp_vms_stg'] or inventory_hostname in groups['ocp_vms']
|
||||||
when: vm_exists is failed
|
when: vm_exists is failed
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue