Closed mikysal78 closed 4 years ago
@mikysal78 , the role can work on master only. Can you please share your bind_zone_domains
definition ?
@GR360RY my zone {{ domain_1 }} in playbook is {{ basilicata_nnxx }} is:
---
basilicata_nnxx:
- name: basilicata.nnxx
hostmaster_email: hostmaster
create_reverse_zones: true
primaries:
- 10.27.253.1
name_servers:
- ns1.basilicata.nnxx.
- ns2.basilicata.nnxx.
also_notify:
- 10.27.253.1
- 10.27.253.2
hosts:
- name: '@'
ip: 10.27.253.1
- name: 'ns1'
ip: 10.27.253.1
- name: 'ns2'
ip: 10.27.253.2
- name: 'nas'
ip: 10.27.22.2
ipv6: fd25:fc4:1261::2
- name: 'my-media'
ip: 10.27.22.6
ipv6: fd25:fc4:1261::6
- name: 'jenkins'
ip: 10.27.22.113
aliases:
- downloads
- name: pc-fisso
ip: 10.27.22.100
aliases:
- virtualbox
- vbox
I edit local role your PR #141 and is ok. Only change bind_zone_domains is renamed to bind_zones.
But as a change to use only one server? remove only nameserver ns2 and also_notify? Thanks
@mikysal78 , you are absolutely correct - just keep only a single entry under name_servers
and remove also_notify
.
Thanks
If i don't have secondary and forward server but only master server, is posible use this role? I test with this playbook:
I have the error:
TASK [ansible-role-bind : Check
primariesor
forwarderswas set for each zone] ********************************************************* fatal: [openwisp.basilicata.nnxx]: FAILED! => {"msg": "The conditional check 'item.primaries is defined or item.forwarders' failed. The error was: error while evaluating conditional (item.primaries is defined or item.forwarders): 'dict object' has no attribute 'forwarders'"}