{"id":16994791,"url":"https://github.com/znerol/ansible-role-ipaddr-hash","last_synced_at":"2025-07-20T06:33:21.864Z","repository":{"id":52421015,"uuid":"266772781","full_name":"znerol/ansible-role-ipaddr-hash","owner":"znerol","description":"Provides a Jinja2 filter plugin to compute an IP address given a prefix and a seed, e.g., the `inventory_hostname`.","archived":false,"fork":false,"pushed_at":"2023-06-15T10:57:19.000Z","size":19,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T23:41:34.557Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/znerol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","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":"2020-05-25T12:25:15.000Z","updated_at":"2024-12-10T19:37:31.000Z","dependencies_parsed_at":"2025-01-27T06:37:34.785Z","dependency_job_id":null,"html_url":"https://github.com/znerol/ansible-role-ipaddr-hash","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/znerol/ansible-role-ipaddr-hash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znerol%2Fansible-role-ipaddr-hash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znerol%2Fansible-role-ipaddr-hash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znerol%2Fansible-role-ipaddr-hash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znerol%2Fansible-role-ipaddr-hash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/znerol","download_url":"https://codeload.github.com/znerol/ansible-role-ipaddr-hash/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znerol%2Fansible-role-ipaddr-hash/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266076350,"owners_count":23872741,"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":[],"created_at":"2024-10-14T03:46:38.165Z","updated_at":"2025-07-20T06:33:21.839Z","avatar_url":"https://github.com/znerol.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Ansible Role: ipaddr\\_hash\n==========================\n\n[![Build Status](https://travis-ci.org/znerol/ansible-role-ipaddr-hash.svg?branch=master)](https://travis-ci.org/znerol/ansible-role-ipaddr-hash)\n\nProvides a Jinja2 filter plugin to compute an IP address given a prefix and a\nseed, e.g., the `inventory_hostname`.\n\nThis plugin is useful for people seeking a predictable addressing scheme for\nstatically assigned IPv6 addresses based on hostnames.\n\nThe algorithm used to derive an ip is simple:\n\n    ip = prefix + (sha256(seed) \u0026 hostmask)\n\nRequirements\n------------\n\nNone\n\nRole Variables\n--------------\n\nNone\n\nDependencies\n------------\n\n* Python module [netaddr](https://pypi.org/project/netaddr/) on controller.\n\nExample Playbook\n----------------\n\nUsage of `ipaddr_hash` filter:\n\n    - hosts: localhost\n      tasks:\n        - import_role:\n            name: znerol.ipaddr_hash\n\n        - debug:\n            msg: \"Generated IPv6 address for example.com with prefix '2001:db8::/64' is {{ '2001:db8::/64' | ipaddr_hash('example.com') }}\"\n\nThis should generate the address: `2001:db8::13d2:1255:86ce:1947`.\n\nSee [test/test.yml](tests/test.yml) for sample input/output.\n\nLicense\n-------\n\nGPLv3\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fznerol%2Fansible-role-ipaddr-hash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fznerol%2Fansible-role-ipaddr-hash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fznerol%2Fansible-role-ipaddr-hash/lists"}