diff --git a/playbooks/inventory/dynamic_inventory.py b/playbooks/inventory/dynamic_inventory.py index c100f0cc0e..34ef8f5391 100755 --- a/playbooks/inventory/dynamic_inventory.py +++ b/playbooks/inventory/dynamic_inventory.py @@ -966,7 +966,8 @@ def main(): f.write( json.dumps( hostnames_ips, - indent=4 + indent=4, + sort_keys=True ) )