copr-hv: upload images only to appropriate hypervisors

This commit is contained in:
Pavel Raiskup 2021-07-12 10:07:04 +02:00
parent 84d69178f3
commit d10cb77f9b

View file

@ -6,7 +6,11 @@ image=$1
connections='
{% for host in groups["copr_hypervisor"] %}
{% for arch in ["p08", "x86"] %}
{% if arch in inventory_hostname and arch in hostvars[host]['inventory_hostname'] %}
qemu+ssh://copr@{{ hostvars[host]['inventory_hostname'] }}/system
{% endif %}
{% endfor %}
{% endfor %}
'