{"id":27185254,"url":"https://github.com/m4wh6k/ansible-tailscale-inventory","last_synced_at":"2025-04-09T17:14:29.531Z","repository":{"id":38325366,"uuid":"500654054","full_name":"m4wh6k/ansible-tailscale-inventory","owner":"m4wh6k","description":"Dynamic Ansible inventory for your Tailscale hosts","archived":false,"fork":false,"pushed_at":"2025-02-18T16:53:23.000Z","size":24,"stargazers_count":49,"open_issues_count":0,"forks_count":7,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-09T17:14:22.845Z","etag":null,"topics":["ansible","ansible-inventory","tailscale"],"latest_commit_sha":null,"homepage":"","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/m4wh6k.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-07T01:54:22.000Z","updated_at":"2025-03-25T13:16:32.000Z","dependencies_parsed_at":"2023-11-12T05:23:00.561Z","dependency_job_id":"4fcd8541-9c69-4e10-8fb4-189ead4400bc","html_url":"https://github.com/m4wh6k/ansible-tailscale-inventory","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m4wh6k%2Fansible-tailscale-inventory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m4wh6k%2Fansible-tailscale-inventory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m4wh6k%2Fansible-tailscale-inventory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m4wh6k%2Fansible-tailscale-inventory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m4wh6k","download_url":"https://codeload.github.com/m4wh6k/ansible-tailscale-inventory/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248074924,"owners_count":21043490,"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","tailscale"],"created_at":"2025-04-09T17:14:28.989Z","updated_at":"2025-04-09T17:14:29.524Z","avatar_url":"https://github.com/m4wh6k.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ansible-tailscale-inventory\n\nDependency-free dynamic Ansible inventory for your Tailscale hosts. Allows you to reach your Tailscale hosts easily with\nAnsible. All you need is Tailscale installed and working, python 3.8+, and a copy of `ansible_tailscale_inventory.py`\nfrom this repo.\n\n## Usage\n\nFrom one of your Tailscale nodes on your network, make `ansible_tailscale_inventory.py` available as an inventory to\nAnsible. This can be done as an argument to the `-i` option on Ansible commands, or by setting the `ANSIBLE_INVENTORY`\nenvironment variable's value as the path to the script.\n\nNotes:\n\n- At the time of writing, the inventory script has been tested with macOS and Linux, but not Windows.\n- If you copy/paste the script from GitHub rather than cloning the repo and copying the file, ensure the script is\n  marked as an executable.\n\n## Ansible Groups\n\n`ansible_tailscale_inventory.py` automatically provides a few groups.\n\n- There are groups of hosts for each operating system (`macOS`, `linux`, etc)\n- Online hosts are found in the `online` group, offline hosts in the `offline` group\n- The `self` group includes the local host\n- Each Tailscale tag that has at least one host will be a group as well. The name will be formatted as `tag_TagName`\n  (`-` and `:` characters will be replaced with underscores)\n\n## Inventory Metadata\n\nThe inventory automatically adds all available Tailscale IPs as a list in the fact `tailscale_ips`.\n\n## Contributing\n\nCheck out the [contributing doc](CONTRIBUTING.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm4wh6k%2Fansible-tailscale-inventory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm4wh6k%2Fansible-tailscale-inventory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm4wh6k%2Fansible-tailscale-inventory/lists"}