]> freie-schul-it.de Git - fsit_smgt.git/blobdiff - tasks/pihole.yml
Server für LDAP-Mgt
[fsit_smgt.git] / tasks / pihole.yml
index e7b3b31098d1602b2af900d8725b4964ec58cc65..28f4982238624ec2dab72631c9905955f3afcb9b 100644 (file)
@@ -4,7 +4,7 @@
     cmd: pihole-FTL --config  ntp.sync.active '{{ fsit_smgt_ntp_sync_active }}'
   register: ftl_ntp_sync_active_response
   changed_when: ftl_ntp_sync_active_response.rc != 0
     cmd: pihole-FTL --config  ntp.sync.active '{{ fsit_smgt_ntp_sync_active }}'
   register: ftl_ntp_sync_active_response
   changed_when: ftl_ntp_sync_active_response.rc != 0
-  when: fsit_smgt_ntp_sync_active | length > 0
+  when: fsit_smgt_ntp_sync_active is defined
 - name: Update dns.upstreams per host_vars
   ansible.builtin.command:
     cmd: pihole-FTL --config dns.upstreams '{{ fsit_smgt_dns_upstreams | to_json }}'
 - name: Update dns.upstreams per host_vars
   ansible.builtin.command:
     cmd: pihole-FTL --config dns.upstreams '{{ fsit_smgt_dns_upstreams | to_json }}'