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>
This commit is contained in:
jeet
2026-03-22 14:14:14 -04:00
parent 42f0f85169
commit dd63f1c408
2 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -5,4 +5,5 @@ all:
UDMP:
ansible_host: 192.168.1.1
ansible_user: root
ansible_ssh_private_key_file: ~/.ssh/id_rsa
ansible_ssh_private_key_file: ~/.ssh/id_ed25519
nextdns_profile_id: "e3448e"
+3 -2
View File
@@ -1,5 +1,6 @@
- name: Install and Configure NextDNS CLI
hosts: UDM
become: false
gather_facts: yes
tasks:
@@ -12,5 +13,5 @@
- 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 == ""
cmd: "printf 'i\n{{ nextdns_profile_id }}\nY\nY\nY' | sh -c 'sh -c \"$(curl -sL https://nextdns.io/install)\"'"
when: nextdns_status.stdout == ""