ansible-role-bind/README.md

89 lines
2.3 KiB
Markdown
Raw Normal View History

2017-10-08 12:55:01 +00:00
# Ansible role: Bind
[![Version](https://img.shields.io/badge/latest_version-0.1.0-green.svg)](https://github.com/nishiki/ansible-role-bind/releases)
[![Build Status](https://travis-ci.org/nishiki/ansible-role-bind.svg?branch=master)](https://travis-ci.org/nishiki/ansible-role-bind)
[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://github.com/nishiki/ansible-role-bind/blob/master/LICENSE)
Install and configure bind with dnssec
## Requirements
None
## Role variables
* `bind_role` - the role `master` or `slave`, don't generate dnssec key on `slave`
* `bind_zones` - the dns zones
* `bind_listen_ipv4` - enable or disable ip v4 support (default: true)
* `bind_listen_ipv6` - enable or disable ip v6 support (default: true)
2017-10-08 12:55:01 +00:00
## How to use
2017-10-15 07:17:28 +00:00
* `host_vars/dns-master`
```
bind_role: master
```
* `host_vars/dns-slave`
```
bind_role: slave
```
* `group_vars/dns-server`
```
bind_listen_ipv6: true
bind_listen_ipv4: true
bind_zones:
test.local:
ns_primary: ns1.test.local
mail: root@test.local
serial: 2017092202
dnssec: yes
entries:
- { name: '@', type: ns, value: localhost. }
- { name: hello, type: a, value: 1.2.3.4 }
hello.local:
ns_primary: ns1.hello.local
mail: root@hello.local
serial: 2017092201
dnssec: no
entries:
- { name: '@', type: ns, value: localhost. }
- { name: hello, type: a, value: 4.3.2.1 }
```
* playbook
2017-10-08 12:55:01 +00:00
```
- hosts: dns-server
roles:
- bind
```
## Development
### Tests with docker
* install [docker](https://docs.docker.com/engine/installation/)
2017-10-14 23:50:43 +00:00
* install ruby
* install bundler `gem install bundler`
2017-10-08 12:55:01 +00:00
* install dependencies `bundle install`
2017-10-15 20:47:13 +00:00
* run the tests `kitchen test`
2017-10-15 00:27:10 +00:00
## License
```
Copyright (c) 2017 Adrien Waksberg
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```