]> freie-schul-it.de Git - fsit_smgt.git/blobdiff - tasks/pihole.yml
inventroy lieber mit ansible-cmdb
[fsit_smgt.git] / tasks / pihole.yml
index 2d79d02979fe66c1796236df1b33b9a44752e236..28f4982238624ec2dab72631c9905955f3afcb9b 100644 (file)
@@ -1,4 +1,10 @@
 ---
+- name: Update ntp.sync.active per group_vars
+  ansible.builtin.command:
+    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 is defined
 - name: Update dns.upstreams per host_vars
   ansible.builtin.command:
     cmd: pihole-FTL --config dns.upstreams '{{ fsit_smgt_dns_upstreams | to_json }}'