Skip to content

Commit

Permalink
move loop inside the block
Browse files Browse the repository at this point in the history
  • Loading branch information
suhancz committed Oct 29, 2023
1 parent 9df721f commit fd91fa1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tasks/dyndns.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit fd91fa1

Please sign in to comment.