[P3] NextDNS profile ID hardcoded in playbook — move to variable #2

Closed
opened 2026-03-22 18:04:11 +00:00 by jeet · 0 comments
Owner

Problem

The profile ID e3448e is hardcoded directly in the shell command and committed to git. Visible to anyone with repo access.

Fix

Move to inventory.yml as a host variable:

# inventory.yml
nextdns_profile_id: "e3448e"

Reference in playbook:

# playbook
printf "i\n{{ nextdns_profile_id }}\nY\nY\nY"

This also makes the playbook reusable for different profiles without editing code.

Files: inventory.yml, playbooks/config-nextdns.yml

## Problem The profile ID `e3448e` is hardcoded directly in the shell command and committed to git. Visible to anyone with repo access. ## Fix Move to `inventory.yml` as a host variable: ```yaml # inventory.yml nextdns_profile_id: "e3448e" ``` Reference in playbook: ```yaml # playbook printf "i\n{{ nextdns_profile_id }}\nY\nY\nY" ``` This also makes the playbook reusable for different profiles without editing code. **Files:** `inventory.yml`, `playbooks/config-nextdns.yml`
jeet closed this issue 2026-03-22 18:14:24 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: jeet/Unifi-NextDNS#2