ansible-role-bind/test/integration/bind/default.yml

69 lines
2.2 KiB
YAML
Raw Normal View History

2017-10-08 12:55:01 +00:00
- hosts: localhost
connection: local
vars:
bind_listen_ipv6: false
2017-10-08 12:55:01 +00:00
bind_role: master
2018-03-21 19:30:11 +00:00
bind_options:
server-id: '"1"'
2017-10-08 12:55:01 +00:00
bind_zones:
test.local:
allow_transfer:
- '4.2.2.4'
2017-10-08 12:55:01 +00:00
ns_primary: ns1.test.local
mail: root@test.local
serial: 2017092202
ttl: 3600
refresh: 14400
retry: 86400
expire: 2419200
negative_cache: 86400
dnssec: yes
2018-03-17 19:39:53 +00:00
options:
auto-dnssec: maintain
inline-signing: yes
key-directory: '"/etc/bind/keys"'
2018-03-17 10:07:20 +00:00
records:
2017-10-08 12:55:01 +00:00
- { name: '@', type: mx, priority: 20, value: mail.test.local. }
- { name: '@', type: ns, value: localhost. }
2018-03-16 23:36:43 +00:00
- { name: hello, type: a, ttl: 5m, value: 1.2.3.4 }
2018-03-17 09:47:25 +00:00
- { name: hello, type: caa, flag: 0, tag: issue, value: letsencrypt.org }
- { name: hello, type: caa, flag: 0, tag: iodef, value: 'mailto:root@test.local' }
2018-05-25 11:06:21 +00:00
- { name: hello, type: srv, priority: 0, weight: 5, port: 80, value: www }
2017-10-08 12:55:01 +00:00
hello.local:
ns_primary: ns1.hello.local
mail: root@hello.local
serial: 2017092201
dnssec: no
2018-03-17 10:07:20 +00:00
records:
2017-10-08 12:55:01 +00:00
- { name: '@', type: mx, priority: 20, value: mail.test.local. }
- { name: '@', type: ns, value: localhost. }
2017-10-15 07:03:46 +00:00
- { name: '@', type: txt, value: RFufr9qzCi9vnJeWUB2FMNDCtu8ZtP6WE2jl2OFvIiz6pv2dwfzEXBgTC8SI1UzsmlkFYS7vxkHeYuOCLQ95BkOl0YP85ejQQlz8DNbcMcUdAoDtmlaZ9jeXnU7RgCXs5F9ggsmM9B6mFMhZWo1lzwsX86UAR5nw7rIO3cbGo9oUcMTShVFDkTPnoNhP7MTE0L4M99yv8ZLptmS2GP6goHXZgTdFIyYCdfziQgoENcloUI3KshDscsoh6H6I2LA }
2017-10-08 12:55:01 +00:00
- { name: hello, type: a, value: 4.3.2.1 }
2018-03-31 15:50:50 +00:00
disabled.local:
ns_primary: ns1.disabled.local
mail: root@disabled.local
serial: 2017092201
dnssec: no
state: disabled
records:
- { name: '@', type: mx, priority: 20, value: mail.test.local. }
absent.local:
ns_primary: ns1.absent.local
mail: root@absent.local
serial: 2017092201
dnssec: no
state: absent
records:
- { name: '@', type: mx, priority: 20, value: mail.test.local. }
2017-10-08 12:55:01 +00:00
roles:
2018-03-16 23:33:54 +00:00
- ansible-role-bind
tasks:
- apt:
name: dnsutils