Merge "Ensure the build host is the first repo server"

This commit is contained in:
Zuul 2019-04-14 03:43:39 +00:00 committed by Gerrit Code Review
commit 8a64d09583

View File

@ -69,7 +69,7 @@ venv_build_targets: |-
} }
} }
%} %}
{% for item in (groups['repo_all'] | default([inventory_hostname])) %} {% for item in ((groups['repo_all'] | default([inventory_hostname])) | reverse) %}
{% set distro = hostvars[item]['ansible_distribution_version'] %} {% set distro = hostvars[item]['ansible_distribution_version'] %}
{% set arch = hostvars[item]['ansible_architecture'] %} {% set arch = hostvars[item]['ansible_architecture'] %}
{% set target_item = {(arch | string): (item | string)} %} {% set target_item = {(arch | string): (item | string)} %}