From 034f06b6c4002edc8d8bc2c871b71881576baf5d Mon Sep 17 00:00:00 2001 From: s3lph Date: Sat, 16 Jan 2021 02:11:49 +0100 Subject: [PATCH] Fix loop syntax error --- roles/knot/tasks/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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