diff --git a/roles/knot/tasks/config.yml b/roles/knot/tasks/config.yml index cd5591b..b146213 100644 --- a/roles/knot/tasks/config.yml +++ b/roles/knot/tasks/config.yml @@ -19,7 +19,7 @@ group: knot mode: 0640 validate: /usr/bin/kzonecheck -v %s - when: "inventory_hostname in item.masters" + when: "inventory_hostname in item['masters']" loop: "{{ hostvars[inventory_hostname] | dict2items | selectattr('key', 'match', '^knot_zone_.+$') | map(attribute='value') | list }}" notify: reload knot