{"id":16164164,"url":"https://github.com/tleguern/ansible-role-nsd","last_synced_at":"2026-02-25T07:12:11.168Z","repository":{"id":141734394,"uuid":"241448323","full_name":"tleguern/ansible-role-nsd","owner":"tleguern","description":"Ansible role for the nsd daemon","archived":false,"fork":false,"pushed_at":"2025-03-03T14:03:59.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-03T14:37:16.144Z","etag":null,"topics":["ansible","ansible-role","dns","nsd"],"latest_commit_sha":null,"homepage":null,"language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tleguern.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-18T19:26:42.000Z","updated_at":"2025-03-03T13:54:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"86393b56-866d-4f0b-99b0-c8c8c1a0159a","html_url":"https://github.com/tleguern/ansible-role-nsd","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/tleguern%2Fansible-role-nsd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tleguern%2Fansible-role-nsd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tleguern%2Fansible-role-nsd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tleguern%2Fansible-role-nsd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tleguern","download_url":"https://codeload.github.com/tleguern/ansible-role-nsd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247595378,"owners_count":20963943,"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","dns","nsd"],"created_at":"2024-10-10T02:45:30.777Z","updated_at":"2026-02-25T07:12:06.110Z","avatar_url":"https://github.com/tleguern.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible Role: nsd\n\nAn Ansible role that installs and configures nsd and also manages zone files.\n\n## Requirements\n\nNone.\n\n## Role Variables\n\n| Variable | Description | Default |\n|----------|-------------|---------|\n| `nsd_user` | User name of `nsd` | `{{ __nsd_user }}` |\n| `nsd_group` | Group name of `nsd` | `{{ __nsd_group }}` |\n| `nsd_service` | Service name of `nsd` | `{{ __nsd_service }}` |\n| `nsd_package` | Package name of `nsd` | `{{ __nsd_package }}` |\n| `nsd_conf_dir` | Path to directory where `nsd.conf` resides | `{{ __nsd_conf_dir }}` |\n| `nsd_zones_dir` | Path to directory where zone files reside | `{{ __nsd_zones_dir }}` |\n| `nsd_db_dir` | Path to directory where `nsd` database file reside | `{{ __nsd_db_dir }}` |\n| `nsd_conf_file` | Path to `nsd.conf` | `{{ nsd_conf_dir }}/nsd.conf` |\n| `nsd_bin` | Path to `nsd-checkconf` | `{{ __nsd_bin }}` |\n| `nsd_sock` | Path to `nsd` remote-control socket | `{{ __nsd_sock }}` |\n| `nsd_logfile` | Path to `nsd` log | `{{ __nsd_logfile }}` |\n| `nsd_flags` | Addtional flags to `nsd` daemon | \"\" |\n| `nsd_zones_inputdir` | Local path to directory where your zone files reside | \"\" | \n| `nsd_role` | Either `standalone`, `master` or `slave` | `standalone` |\n| `nsd_zone` | A list of zones | see below |\n| `nsd_keys` | A list of keys for AXFR | see below |\n| `nsd_listens` | Optionally bind to a list of IP addresses | `[]` |\n\n### `nsd_zone`\n\nThis variable is a list of dict of zone files this role will handle.\n\n| Variable | Description | Mandatory? |\n|----------|-------------|---------|\n| name | Zone name | yes |\n| state | Either `absent` or `present` | no |\n| key | Key to use if `nsd_role` is not `standalone` | depends |\n\n### `nsd_keys`\n\nThis variable is a list of dict describing keys for `nsd`.\nIt is mandatory to declare a `nsd_keys` list if `nsd_role` is not `standalone`.\n\n| Variable | Description | Mandatory? |\n|----------|-------------|---------|\n| name | Key name | yes |\n| algorithm | Key algorithm | no, default to `hmac-sha256` |\n| secret | Key content | yes |\n\n### Debian\n\n| Variable | Default |\n|----------|---------|\n| `__nsd_user` | `nsd` |\n| `__nsd_group` | `nsd` |\n| `__nsd_service` | `nsd` |\n| `__nsd_package` | `nsd` |\n| `__nsd_conf_dir` | `/etc/nsd` |\n| `__nsd_zones_dir` | `/var/lib/nsd/zones` |\n| `__nsd_db_dir` | `/var/lib/nsd` |\n| `__nsd_bin` | `/usr/sbin/nsd-checkconf` |\n| `__nsd_sock` | `127.0.0.1` |\n\n### OpenBSD\n\n| Variable | Default |\n|----------|---------|\n| `__nsd_user` | `_nsd` |\n| `__nsd_group` | `_nsd` |\n| `__nsd_service` | `nsd` |\n| `__nsd_package` | \"\" |\n| `__nsd_conf_dir` | `/var/nsd/etc` |\n| `__nsd_zones_dir` | `/var/nsd/zones` |\n| `__nsd_db_dir` | `/var/nsd/db` |\n| `__nsd_bin` | `/usr/sbin/nsd-checkconf` |\n| `__nsd_sock` | `/var/run/nsd.sock` |\n\n## Dependencies\n\nNone.\n\n## Example Playbooks\n\n```\n$ ls zones/\nexample.org example.com bogus.domain\n```\n\n```\n- hosts: ns\n  roles:\n  - role: ansible-role-nsd\n    nsd_listens: [ \"{{ ansible_default_ipv4.address }}\" ]\n    nsd_zones_inputdir: zones/\n    nsd_zones:\n      - name: example.org\n      - name: example.com\n      - name: bogus.domain\n        state: absent\n```\n\n## License\n\nISC\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftleguern%2Fansible-role-nsd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftleguern%2Fansible-role-nsd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftleguern%2Fansible-role-nsd/lists"}