From 525d3b2cfb704358691826d20ab41a22fbf55764 Mon Sep 17 00:00:00 2001
From: Chris Coley <chris@codingallnight.com>
Date: Thu, 2 Aug 2018 17:16:49 -0700
Subject: [PATCH] Update diagnose-unpingable task list to work with Fedora

---
 tasks/diagnose-unpingable.yml | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/tasks/diagnose-unpingable.yml b/tasks/diagnose-unpingable.yml
index 5da41c9..a78e84f 100644
--- a/tasks/diagnose-unpingable.yml
+++ b/tasks/diagnose-unpingable.yml
@@ -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:
-- 
GitLab