X-Git-Url: https://freie-schul-it.de/gitweb/fsit_smgt.git/blobdiff_plain/0380d3fb187c6934c6c79ce5ab08d602b2b18884..8177b1a20024dacccf082dac8d3c7f94391b9a85:/tasks/pihole.yml?ds=sidebyside diff --git a/tasks/pihole.yml b/tasks/pihole.yml index 2d79d02..e7b3b31 100644 --- a/tasks/pihole.yml +++ b/tasks/pihole.yml @@ -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 | length > 0 - name: Update dns.upstreams per host_vars ansible.builtin.command: cmd: pihole-FTL --config dns.upstreams '{{ fsit_smgt_dns_upstreams | to_json }}'