Skip to content
Snippets Groups Projects
Verified Commit 452090f6 authored by Evangelos Foutras's avatar Evangelos Foutras :smiley_cat:
Browse files

hcloud_inventory: Optimize --list to avoid --host calls

By adding a top-level element called "_meta" to the --list response,
Ansible will not call the inventory script with --host for each host
thus saving a lot of time and many requests to the Hetzner Cloud API.

The speed-up is significant; `ansible-inventory --list` is down from
about 1 minute to just 7 seconds in my testing (with ~60ms latency).
parent b3f94001
No related branches found
No related tags found
1 merge request!459hcloud_inventory: Optimize --list to avoid --host calls
Pipeline #9649 passed
Status
Pipeline
Created by
Stages
Actions
Passed

00:01:00

avatar
Download artifacts

No artifacts found