{"id":16779660,"url":"https://github.com/ahuffman/ansible-resolv","last_synced_at":"2025-03-22T00:31:12.820Z","repository":{"id":8341679,"uuid":"58003640","full_name":"ahuffman/ansible-resolv","owner":"ahuffman","description":"Ansible role to configure /etc/resolv.conf","archived":false,"fork":false,"pushed_at":"2022-01-04T21:05:22.000Z","size":13,"stargazers_count":46,"open_issues_count":0,"forks_count":30,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-01T11:11:17.701Z","etag":null,"topics":["ansible","ansible-role","resolv","resolv-conf"],"latest_commit_sha":null,"homepage":null,"language":"Jinja","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/ahuffman.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}},"created_at":"2016-05-03T21:47:15.000Z","updated_at":"2024-08-05T14:00:31.000Z","dependencies_parsed_at":"2022-08-07T03:00:21.896Z","dependency_job_id":null,"html_url":"https://github.com/ahuffman/ansible-resolv","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahuffman%2Fansible-resolv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahuffman%2Fansible-resolv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahuffman%2Fansible-resolv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahuffman%2Fansible-resolv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahuffman","download_url":"https://codeload.github.com/ahuffman/ansible-resolv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244166865,"owners_count":20409210,"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-role","resolv","resolv-conf"],"created_at":"2024-10-13T07:31:22.283Z","updated_at":"2025-03-22T00:31:12.514Z","avatar_url":"https://github.com/ahuffman.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Ansible Role](https://img.shields.io/ansible/role/d/9527)\n\n# ahuffman.resolv\nAn Ansible role to configure /etc/resolv.conf\n\n## Role Variables\n### Defaults\n| Variable Name | Required | Description | Default Value | Type |\n| --- | :---: | --- | :---: | :---: |\n|resolv_nameservers| yes | A list of up to 3 nameserver IP addresses | [] | list |\n| resolv_domain | no | Local domain name | \"\" | string |\n| resolv_search | no | List of up to 6 domains to search for host-name lookup | [] | list |\n| resolv_sortlist | no | List of IP-address and netmask pairs to sort addresses returned by gethostbyname. | [] | list |\n| resolv_options | no | List of options to modify certain internal resolver variables. | [] | list |\n\n\n## Example Playbooks\n### Role Invocation\n```yaml\n    - name: \"Role Invocation - ahuffman.resolv Example\"\n      hosts: \"all\"\n      roles:\n        - role: \"ahuffman.resolv\"\n          resolv_nameservers:\n            - \"8.8.8.8\"\n            - \"8.8.4.4\"\n          resolv_domain: \"foo.org\"\n          resolv_search:\n            - \"foo.bar\"\n            - \"foobar.com\"\n          resolv_options:\n            - \"timeout:2\"\n            - \"rotate\"\n```\n### Role Invocation with externaly defined variables (group_vars / host_vars)\n```yaml\n    - name: \"Role Invocation - ahuffman.resolv Example\"\n      hosts: \"all\"\n      roles:\n        - role: \"ahuffman.resolv\"\n          when:\n            - resolv_nameservers is defined\n            - resolv_nameservers | length \u003e 0\n```\n### Included Role\n```yaml\n---\n- name: \"Included Role - ahuffman.resolv Example\"\n  hosts: \"all\"\n  tasks:\n    - name: \"Configure resolv.conf\"\n      include_role:\n        name: \"ahuffman.resolv\"\n      vars:\n        resolv_nameservers:\n          - \"8.8.8.8\"\n          - \"8.8.4.4\"\n        resolv_domain: \"foo.org\"\n        resolv_search:\n          - \"foo.bar\"\n          - \"foobar.com\"\n        resolv_options:\n          - \"timeout:2\"\n          - \"rotate\"\n```\n## License\n[MIT](LICENSE)\n\n## Author Information\n[Andrew J. Huffman](https://github.com/ahuffman)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahuffman%2Fansible-resolv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahuffman%2Fansible-resolv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahuffman%2Fansible-resolv/lists"}