20 lines
636 B
YAML
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 |