From fd91fa1bda444fd300289b67fb569aa21c3421f0 Mon Sep 17 00:00:00 2001 From: Akos Balla Date: Sun, 29 Oct 2023 18:11:50 +0100 Subject: [PATCH] move loop inside the block --- tasks/dyndns.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tasks/dyndns.yml b/tasks/dyndns.yml index 1dc69e4..d591f3a 100644 --- a/tasks/dyndns.yml +++ b/tasks/dyndns.yml @@ -203,12 +203,12 @@ tags: - dyndns - poweradmin - loop: "{{ [''] + (wg_configs.keys() | list) }}" - loop_control: - loop_var: dyndns_item block: - name: Fill PowerDNS DB with DynDNS data using Blowfish 2y ident when: public_dns == "yes" and dyndns_item != "server" + loop: "{{ [''] + (wg_configs.keys() | list) }}" + loop_control: + loop_var: dyndns_item notify: Warn on passwords community.mysql.mysql_query: login_db: powerdnsdb @@ -221,6 +221,9 @@ rescue: - name: Fill PowerDNS DB with DynDNS data replacing Blowfish 2b ident with 2y when: public_dns == "yes" and dyndns_item != "server" + loop: "{{ [''] + (wg_configs.keys() | list) }}" + loop_control: + loop_var: dyndns_item notify: Warn on passwords community.mysql.mysql_query: login_db: powerdnsdb