Commit 525d3b2c authored by Chris's avatar Chris
Browse files

Update diagnose-unpingable task list to work with Fedora

parent dcd064ae
......@@ -7,7 +7,14 @@
# If the error is related to Python not being found, then try to find the
# available Python interpreters
- name: Python is not found
when: _can_ping.module_stdout is defined and ( 'python' in _can_ping.module_stdout and 'not found' in _can_ping.module_stdout )
when: _can_ping.module_stdout is defined
and (
'python' in _can_ping.module_stdout.lower()
and (
'not found' in _can_ping.module_stdout.lower()
or 'no such file or directory' in _can_ping.module_stdout.lower()
)
)
block:
- include_tasks: '{{ role_path }}/tasks/find-python-executable.yml'
- fail:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment