Files
Unifi-NextDNS/playbooks/config-nextdns.yml
T
2023-12-27 11:50:47 -05:00

20 lines
636 B
YAML

- name: Install and Configure NextDNS CLI
hosts: UDM
gather_facts: yes
tasks:
- name: Download and install NextDNS CLI
ansible.builtin.expect:
command: sh -c 'sh -c "$(curl -sL https://nextdns.io/install)"'
responses:
Question:
- 'Choice (default=i):' : 'i'
- 'NextDNS Profile ID (default=e3448e):' : 'e3448e'
- 'Report device name? [Y|n]:' : 'Y'
- 'Enable caching? [Y|n]:' : 'Y'
- 'Enable instant refresh? (y/n):' : 'Y'
- name: Start NextDNS CLI
ansible.builtin.command:
cmd: nextdns start
ignore_errors: yes