Files
Unifi-NextDNS/playbooks/config-nextdns.yml
T
2023-12-27 13:33:01 -05:00

16 lines
510 B
YAML

- name: Install and Configure NextDNS CLI
hosts: UDM
gather_facts: yes
tasks:
- name: Check if NextDNS is installed
ansible.builtin.shell: apt list --installed | grep nextdns
register: nextdns_status
ignore_errors: True
check_mode: False
changed_when: False
- name: Download and Install NextDNS CLI
ansible.builtin.shell:
cmd: printf "i\ne3448e\nY\nY\nY" |sh -c 'sh -c "$(curl -sL https://nextdns.io/install)"'
when: nextdns_status.stdout == ""