From f66467e02934c79648e8d09b207e3ae78cec1882 Mon Sep 17 00:00:00 2001 From: Lars Karlitski Date: Sep 09 2017 13:10:21 +0000 Subject: standard-inventory-qcow2: contact vm with raw ping Some cloud images (including Fedora) don't have python2 installed. A common pattern to use them from ansible is to install python2 with the raw module before doing anything else. Also use the raw module to ping the virtual machine, so that these images can be used with this inventory script as well. --- diff --git a/inventory/standard-inventory-qcow2 b/inventory/standard-inventory-qcow2 index bc202ee..89bc2f6 100755 --- a/inventory/standard-inventory-qcow2 +++ b/inventory/standard-inventory-qcow2 @@ -194,7 +194,9 @@ def host(image): inventory, image, "--module-name", - "ping" + "raw", + "--args", + "/bin/true" ] (pid, ret) = os.waitpid(proc.pid, os.WNOHANG)