{"id":39745250,"url":"https://github.com/rolehippie/hosts","last_synced_at":"2026-01-18T11:19:45.137Z","repository":{"id":35327487,"uuid":"145559270","full_name":"rolehippie/hosts","owner":"rolehippie","description":"Ansible role to manipulate the local hosts configuration","archived":false,"fork":false,"pushed_at":"2026-01-12T09:59:58.000Z","size":275,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-12T18:02:11.106Z","etag":null,"topics":["ansible","ansible-role","hacktoberfest","role"],"latest_commit_sha":null,"homepage":null,"language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rolehippie.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-08-21T12:12:50.000Z","updated_at":"2026-01-12T10:00:02.000Z","dependencies_parsed_at":"2024-01-29T09:32:57.414Z","dependency_job_id":"8595c778-76b5-4ea5-b8d4-0ab90173c438","html_url":"https://github.com/rolehippie/hosts","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/rolehippie/hosts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolehippie%2Fhosts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolehippie%2Fhosts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolehippie%2Fhosts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolehippie%2Fhosts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rolehippie","download_url":"https://codeload.github.com/rolehippie/hosts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolehippie%2Fhosts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28535161,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T10:13:46.436Z","status":"ssl_error","status_checked_at":"2026-01-18T10:13:11.045Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-role","hacktoberfest","role"],"created_at":"2026-01-18T11:19:45.070Z","updated_at":"2026-01-18T11:19:45.125Z","avatar_url":"https://github.com/rolehippie.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hosts\n\n[![Source Code](https://img.shields.io/badge/github-source%20code-blue?logo=github\u0026logoColor=white)](https://github.com/rolehippie/hosts)\n[![General Workflow](https://github.com/rolehippie/hosts/actions/workflows/general.yml/badge.svg)](https://github.com/rolehippie/hosts/actions/workflows/general.yml)\n[![Readme Workflow](https://github.com/rolehippie/hosts/actions/workflows/docs.yml/badge.svg)](https://github.com/rolehippie/hosts/actions/workflows/docs.yml)\n[![Galaxy Workflow](https://github.com/rolehippie/hosts/actions/workflows/galaxy.yml/badge.svg)](https://github.com/rolehippie/hosts/actions/workflows/galaxy.yml)\n[![License: Apache-2.0](https://img.shields.io/github/license/rolehippie/hosts)](https://github.com/rolehippie/hosts/blob/master/LICENSE)\n[![Ansible Role](https://img.shields.io/badge/role-rolehippie.hosts-blue)](https://galaxy.ansible.com/rolehippie/hosts)\n\nAnsible role to manipulate the local hosts configuration.\n\n## Sponsor\n\nBuilding and improving this Ansible role have been sponsored by my current and previous employers like **[Cloudpunks GmbH](https://cloudpunks.de)** and **[Proact Deutschland GmbH](https://www.proact.eu)**.\n\n## Table of contents\n\n- [Requirements](#requirements)\n- [Default Variables](#default-variables)\n  - [fqdn](#fqdn)\n  - [hostname](#hostname)\n  - [hosts_additions](#hosts_additions)\n  - [hosts_enforce_hostname](#hosts_enforce_hostname)\n  - [hosts_ipv4_address](#hosts_ipv4_address)\n  - [hosts_ipv6_address](#hosts_ipv6_address)\n  - [hosts_reload_services](#hosts_reload_services)\n- [Discovered Tags](#discovered-tags)\n- [Dependencies](#dependencies)\n- [License](#license)\n- [Author](#author)\n\n---\n\n## Requirements\n\n- Minimum Ansible version: `2.10`\n\n## Default Variables\n\n### fqdn\n\nFully qualified domain name for this host\n\n#### Default value\n\n```YAML\nfqdn: '{{ ansible_fqdn }}'\n```\n\n### hostname\n\nHostname for this host\n\n#### Default value\n\n```YAML\nhostname: '{{ inventory_hostname }}'\n```\n\n### hosts_additions\n\nAdditional entries for hosts config\n\n#### Default value\n\n```YAML\nhosts_additions: []\n```\n\n#### Example usage\n\n```YAML\nhosts_additions:\n  - 192.168.1.10 host1\n  - 192.168.1.20 host2\n  - 192.168.1.30 host3\n```\n\n### hosts_enforce_hostname\n\nEnforce the update of the hostname\n\n#### Default value\n\n```YAML\nhosts_enforce_hostname: true\n```\n\n### hosts_ipv4_address\n\nIPv4 address of this host\n\n#### Default value\n\n```YAML\nhosts_ipv4_address: \"{{ (ansible_eth0.ipv4.address) if ansible_eth0 is defined else\n  (ansible_all_ipv4_addresses | first | default('')) }}\"\n```\n\n### hosts_ipv6_address\n\nIPv6 address of this host\n\n#### Default value\n\n```YAML\nhosts_ipv6_address: \"{{ (ansible_eth0.ipv6 | map(attribute='address') | first | default(''))\n  if ansible_eth0 is defined and ansible_eth0.ipv6 is defined else (ansible_all_ipv6_addresses\n  | first | default('')) }}\"\n```\n\n### hosts_reload_services\n\nList of services to reload on hosts change\n\n#### Default value\n\n```YAML\nhosts_reload_services: []\n```\n\n## Discovered Tags\n\n**_hosts_**\n\n## Dependencies\n\n- None\n\n## License\n\nApache-2.0\n\n## Author\n\n[Thomas Boerger](https://github.com/tboerger)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frolehippie%2Fhosts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frolehippie%2Fhosts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frolehippie%2Fhosts/lists"}