Skip to content

Commit

Permalink
Don't require primaries attribute to be defined if zone type is prima…
Browse files Browse the repository at this point in the history
…ry (fixes bertvv#184)
  • Loading branch information
Yannik authored Apr 4, 2022
1 parent bc9e234 commit aa8cf3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
- name: Check `primaries` or `forwarders` was set for each zone
assert:
that:
- item.primaries is defined or item.forwarders is defined
- (item.type is defined and item.type == 'primary') or item.primaries is defined or item.forwarders is defined
quiet: yes
loop: "{{ bind_zones }}"
loop_control:
Expand Down

0 comments on commit aa8cf3d

Please sign in to comment.