koji_builder / kojid: fix template to work on hosts with both runroot and containerbuild

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2020-11-18 10:28:22 -08:00
parent 88549a1152
commit f3098580fb

View file

@ -144,13 +144,11 @@ keytab = /etc/kojid/kojid.keytab
{% set plugins = [] %}
{% if 'runroot' in group_names %}
{% set plugins = ['runroot'] %}
{% else %}
{% if ansible_architecture == 'x86_64' and not inventory_hostname.startswith('bkernel') %}
{% set plugins = ['builder_containerbuild'] %}
{% plugins.append = ['runroot'] %}
{% endif %}
{% if ansible_architecture == 'x86_64' and not inventory_hostname.startswith('bkernel') %}
{% plugins.append = ['builder_containerbuild'] %}
{% endif %}
{% if env == 'staging' %}