{"id":21091379,"url":"https://github.com/andreasscherbaum/ansible-bind9","last_synced_at":"2026-04-24T20:02:38.961Z","repository":{"id":150255956,"uuid":"106882255","full_name":"andreasscherbaum/ansible-bind9","owner":"andreasscherbaum","description":"Ansible Playbook for installing bind9 + domains","archived":false,"fork":false,"pushed_at":"2021-12-16T13:30:20.000Z","size":19,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-04T02:44:08.983Z","etag":null,"topics":["ansible","ansible-playbook","ansible-role","bind","bind9","playbook","serial","zone","zone-serial-variable"],"latest_commit_sha":null,"homepage":null,"language":"Makefile","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/andreasscherbaum.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,"zenodo":null}},"created_at":"2017-10-13T23:26:54.000Z","updated_at":"2025-02-04T12:02:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"87679383-7272-43a0-9239-047662659b28","html_url":"https://github.com/andreasscherbaum/ansible-bind9","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andreasscherbaum/ansible-bind9","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreasscherbaum%2Fansible-bind9","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreasscherbaum%2Fansible-bind9/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreasscherbaum%2Fansible-bind9/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreasscherbaum%2Fansible-bind9/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andreasscherbaum","download_url":"https://codeload.github.com/andreasscherbaum/ansible-bind9/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreasscherbaum%2Fansible-bind9/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32238748,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: 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-playbook","ansible-role","bind","bind9","playbook","serial","zone","zone-serial-variable"],"created_at":"2024-11-19T21:45:35.406Z","updated_at":"2026-04-24T20:02:38.957Z","avatar_url":"https://github.com/andreasscherbaum.png","language":"Makefile","readme":"# ansible-bind9\n\nAnsible Playbook for installing bind9 + domains\n\n## Main usage\n\nThat is primarily my own set of instructions how to install bind9. But feel free to look around ...\n\n\n## Files and Directories\n\n* _files/named.conf.local.template_: template for _bind9-data/named.conf.local_, either use the template or create your own file\n* _files/named.conf.options.template_: template for _bind9-data/named.conf.options_, either use the template or create your own file\n* _bind9-data/keys/_: install any key files here, for communication with other nameservers - any file which ends on _.key_ will be copied\n* _bind9-data/zones/_: install any zone file here - any file which ends on _.zone_ will be copied, and the _zone_serial_ variable will he handled\n* _bind9-data/zone-data/_: storage area for zone checksums and serials - do not touch\n\n\n## Preparation\n\nBy default, all data for bind9 lives in the _bind9-data_ directory in the root of the Playbook. This can be changed by modifying the _bind9_data_ variable in _vars/main.yml_.\n\nA few directories have to be created before this role can be used:\n\n```\nmkdir bind9-data\nmkdir bind9-data/keys\nmkdir bind9-data/zones\nmkdir bind9-data/zone-data\nchmod 0700 bind9-data\n```\n\n\n## Role handling and deployment\n\nInstalling the role will verify that certain directories exist locally (in $bind9_data), and will install and configure Bind 9 on the server.\n\nIt will not deploy the configuration and the zones.\n\n### Using the role\n\n```\n- hosts: dns\n  become: yes\n  gather_facts: True\n  any_errors_fatal: True\n  force_handlers: True\n  vars:\n    bind9_data: \"{{ playbook_dir }}/bind9-data\"\n  roles:\n    - role: bind9\n```\n\n### Deploy configuration and zones\n\n```\n- hosts: dns\n  become: yes\n  gather_facts: True\n  any_errors_fatal: True\n  force_handlers: True\n  vars:\n    bind9_data: \"{{ playbook_dir }}/bind9-data\"\n\n  tasks:\n\n    - name: Deploy configuration and zones\n      include: roles/bind9/tasks/deploy.yml\n\n  handlers:\n\n    - include: roles/bind9/handlers/main.yml\n```\n\n\n\n## Serial handling\n\nYou can handle the serial number in a zone as you like - if you include a variable {{ zone_serial }}, this variable will he handled by the Playbook.\n\nEvery time the zone is changed, the current date (yyyymmdd) and a two-digit counter will be set and increased. Date changes will reset the counter to \"01\", and after \"99\" changes a day the Playbook will reject any further changes.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreasscherbaum%2Fansible-bind9","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreasscherbaum%2Fansible-bind9","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreasscherbaum%2Fansible-bind9/lists"}