Fix openqa_tap truthiness checks

Sigh, |bool doesn't do what you might think it does:
https://medium.com/opsops/wft-bool-filter-in-ansible-e7e2fd7a148f

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2022-11-25 14:58:36 -08:00
parent 28110d34be
commit f1e0e0d037
2 changed files with 3 additions and 3 deletions

View file

@ -179,7 +179,7 @@
when: openqa_nfs_worker|bool
- include_tasks: tap-setup.yml
when: openqa_tap|bool
when: openqa_tap
- name: Tell git it's OK for _openqa-worker to run 'git' on the test dir
copy: src=gitconfig dest=/etc/gitconfig owner=root group=root mode=0644
@ -197,7 +197,7 @@
enablerepo: "{{ openqa_repo }}"
tags:
- packages
when: openqa_tap|bool
when: openqa_tap
- name: openQA client config
template: src=client.conf.j2 dest=/etc/openqa/client.conf owner=_openqa-worker group=root mode=0600

View file

@ -2,7 +2,7 @@
HOST = http://{{ openqa_hostname|default('localhost') }}
{% if openqa_worker_class is defined %}
WORKER_CLASS = {{ openqa_worker_class }}
{% elif openqa_tap|bool %}
{% elif openqa_tap %}
{% if ansible_architecture == 'ppc64' or ansible_architecture == 'ppc64le' %}
WORKER_CLASS = {{ openqa_tap }},tpm,qemu_ppc64le,qemu_ppc64
{% elif ansible_architecture == 'aarch64' %}