
3 Oct
2019
3 Oct
'19
10:17 a.m.
On Tue, 2019-10-01 at 16:28 +0200, Fabiano FidĂȘncio wrote:
+++ b/guests/playbooks/update/tasks/paths.yml +# Prefer ninja-build, fall back to ninja +- name: 'Export paths' + set_fact: + ninja: '{{ commands["ninja-build"] }}' + when: + - commands["ninja-build"] != '' + +- name: 'Export paths' + set_fact: + ninja: '{{ commands["ninja"] }}' + when: + - ninja is undefined
Ninja can be invoked as 'ninja' on all target platforms except for CentOS 7, and as 'ninja-build' on all RPM-based platforms, so we should invert this logic and prefer 'ninja' to 'ninja-build'. With that changed, Reviewed-by: Andrea Bolognani <abologna@redhat.com> -- Andrea Bolognani / Red Hat / Virtualization