{"id":13702951,"url":"https://github.com/hg8496/ansible-hcloud-inventory","last_synced_at":"2025-04-22T16:32:11.397Z","repository":{"id":82178618,"uuid":"121695132","full_name":"hg8496/ansible-hcloud-inventory","owner":"hg8496","description":"An dynamic inventory script for hetzner cloud","archived":false,"fork":false,"pushed_at":"2020-03-05T09:43:35.000Z","size":29,"stargazers_count":60,"open_issues_count":0,"forks_count":19,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-02T01:41:54.834Z","etag":null,"topics":["ansible","ansible-inventory","hcloud"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hg8496.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-02-15T23:20:47.000Z","updated_at":"2023-12-31T14:41:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"34e7600d-d5d9-4fc8-9747-6f1f8727dcab","html_url":"https://github.com/hg8496/ansible-hcloud-inventory","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hg8496%2Fansible-hcloud-inventory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hg8496%2Fansible-hcloud-inventory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hg8496%2Fansible-hcloud-inventory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hg8496%2Fansible-hcloud-inventory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hg8496","download_url":"https://codeload.github.com/hg8496/ansible-hcloud-inventory/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250277263,"owners_count":21404021,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-inventory","hcloud"],"created_at":"2024-08-02T21:00:46.885Z","updated_at":"2025-04-22T16:32:11.108Z","avatar_url":"https://github.com/hg8496.png","language":"Python","funding_links":[],"categories":["Integrations"],"sub_categories":["Rust"],"readme":"# ansible-hcloud-inventory\nA dynamic inventory script for hetzner cloud.\n\nUsage:\n`HCLOUD_TOKEN=example ansible-playbook site.yml -u root -i hcloud.py`\nor\n`ansible-playbook site.yml -u root -i \"hcloud.py cloud_token\"`\nor\n`ansible-playbook site.yml -u root -i \"hcloud.py @cloud_token.yml\"`\n\nToken yaml file must contain 'hcloud_token' variable with token. This method allows that you use many of token or store token with vault.\n\nDependencies:\n* requests(`apt install python-request` or `pip install -r requirements.txt`)\n\nThe inventory will consist of multiple groups:\n\nName | Description\n---- | ----\nall | contains all hosts\nhcloud | contains all hosts in Hetzner Cloud\nfsn1_dc8 | contains all hosts in datacenter Falkenstein\nnbg1_dc3 | contains all hosts in datacenter Nürnberg\nlabel1_value1 | contains all hosts have label \"label1\"=\"value1\"\nlabel1_value2 | contains all hosts have label \"label1\"=\"value2\"\n\nThe host has the following hostvars:\n\nName | Description\n---- | ----\nansible_host | Public or private IPv4 or IPv6 Address\nansible_public_net | Public IPv4 Address\nansible_private_net | Private IPv4 Address\nhcloud_server_type | Servertype eg. CX11\nhcloud_image | Name of the used image\nhcloud_datacenter | Datacenter the server is running in\nhcloud_labels | Instance labels\n\nCheck the [hcloud.ini](hcloud.ini) for a short explanation on how to use the ipv6 address of a server as or the private ip address of a server as value for `ansible_host`.\n\nIn [hcloud.ini](hcloud.ini) it is also possible to add aliases for the label groups created. So instead of `DNS_true` you can use `dnsservers` as group identifier.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhg8496%2Fansible-hcloud-inventory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhg8496%2Fansible-hcloud-inventory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhg8496%2Fansible-hcloud-inventory/lists"}