16 lines
510 B
YAML
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 == "" |