From 7f9b44aafd28896a0eb88c465116e5f8fef17515 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Jul 17 2017 09:37:33 +0000 Subject: inventory: Use more legible naming for rpm inventory script To make it clear we're running against an inventory in the Ansible main output, print 'rpms' as the host that we're running against. This makes it clearer that the inventory is in play. --- diff --git a/inventory/standard-inventory-rpm b/inventory/standard-inventory-rpm index 791d169..0af45af 100755 --- a/inventory/standard-inventory-rpm +++ b/inventory/standard-inventory-rpm @@ -36,8 +36,8 @@ def list(subjects): if rpms: vars = host(rpms) if vars: - hosts.append("local") - variables["local"] = vars + hosts.append("rpms") + variables["rpms"] = vars return { "subjects": { "hosts": hosts, "vars": { } }, "localhost": { "hosts": hosts, "vars": { } }, "_meta": { "hostvars": variables } } def host(rpms):