Modify detection of iso_gen_utility

On some platforms, mkisofs is a symlink to genisoimage.
Currently, the playbook will see this as mkisofs existing
on the system, so the playbook's output will look wrong
even though the correct tool is getting used. Make the output
clearer by enhancing the check to set the iso_gen_utility
fact.

Change-Id: If2c3e22c90ea30e66bd6c32e748de66548ff5d0d
This commit is contained in:
stephane 2016-01-06 14:14:05 -08:00
parent 7ff69efafa
commit aa3c7f18aa

View File

@ -69,7 +69,7 @@
- name: "If mkisofs is not available, fallback to genisoimage"
set_fact:
iso_gen_utility: "genisoimage"
when: test_mkisofs.rc != 0
when: ('genisoimage' in test_mkisofs.stderr) or test_mkisofs.rc != 0
- name: "Check if genisoimage is available"
shell: genisoimage --help >>/dev/null
ignore_errors: yes