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:
+2
-1
@@ -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"
|
||||
|
||||
@@ -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 == ""
|
||||
|
||||
Reference in New Issue
Block a user