Files
jeet dd63f1c408 Fix issues 2,3: move NextDNS profile ID to variable, upgrade to ed25519 key
- inventory.yml: replace id_rsa with id_ed25519, add nextdns_profile_id host var (closes #2, #3)
- config-nextdns.yml: reference nextdns_profile_id variable, add become: false

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-22 14:14:14 -04:00

18 lines
550 B
YAML

- name: Install and Configure NextDNS CLI
hosts: UDM
become: false
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\n{{ nextdns_profile_id }}\nY\nY\nY' | sh -c 'sh -c \"$(curl -sL https://nextdns.io/install)\"'"
when: nextdns_status.stdout == ""