From 9cfcbc92876bced8f6dc883fd4e1b68e9931c94d Mon Sep 17 00:00:00 2001 From: Adrien Waksberg Date: Sun, 15 Oct 2017 09:17:28 +0200 Subject: [PATCH] fix: new examples in README --- README.md | 55 ++++++++++++++++++++++++++++++++++++------------------- 1 file changed, 36 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 58af110..6770fb3 100644 --- a/README.md +++ b/README.md @@ -18,27 +18,44 @@ None ## How to use + * `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 + ``` - hosts: dns-server - vars: - bind_role: master - 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 } roles: - bind ```