-
Notifications
You must be signed in to change notification settings - Fork 8
Dns backend #25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Dns backend #25
Conversation
| dc.vm.network "private_network", ip: "10.64.6.%s" % [10+n], netmask: 24, virtualbox__intnet: "intnet" | ||
| dc.vm.box = "BaseALT/alt-server-8.2-x86_64" | ||
| dc.vm.box_version = "1.0.0" | ||
| dc.vm.box_download_checksum = "db0d0f26575bafd0bb4989dc00d85539e0fd9272c943b373ebbb6d978a3c15ee" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you deleting lines with checksum?
| shell: grep -q 'bind-dns' /etc/bind/named.conf || echo 'include "/var/lib/samba/bind-dns/named.conf";' >> /etc/bind/named.conf | ||
|
|
||
| - name: generate options.conf for bind | ||
| template: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please specify file permissions while deploying file.
| shell: grep -q KRB5RCACHETYPE /etc/sysconfig/bind || echo 'KRB5RCACHETYPE="none"' >> /etc/sysconfig/bind | ||
|
|
||
| - name: Add BIND9_DLZ plugin for bind | ||
| shell: grep -q 'bind-dns' /etc/bind/named.conf || echo 'include "/var/lib/samba/bind-dns/named.conf";' >> /etc/bind/named.conf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest looking at lineinfile Ansible module for this kind of tasks.
| //listen-on { localnets; {{ samba_network }}; }; | ||
| forwarders { {{ samba_dns_forward }}; }; | ||
| allow-query { localnets; {{ samba_network }}; }; | ||
| //allow-query-cache { localnets; {{ samba_network }}; }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest to remove commented lines.
5670386 to
be74de7
Compare
8d58404 to
1dea607
Compare
1dea607 to
2931640
Compare
Add rights for bind-dns.