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 }}'