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:
parent
7ff69efafa
commit
aa3c7f18aa
@ -69,7 +69,7 @@
|
|||||||
- name: "If mkisofs is not available, fallback to genisoimage"
|
- name: "If mkisofs is not available, fallback to genisoimage"
|
||||||
set_fact:
|
set_fact:
|
||||||
iso_gen_utility: "genisoimage"
|
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"
|
- name: "Check if genisoimage is available"
|
||||||
shell: genisoimage --help >>/dev/null
|
shell: genisoimage --help >>/dev/null
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
Loading…
Reference in New Issue
Block a user