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`
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Problem
The profile ID
e3448eis hardcoded directly in the shell command and committed to git. Visible to anyone with repo access.Fix
Move to
inventory.ymlas a host variable:Reference in playbook:
This also makes the playbook reusable for different profiles without editing code.
Files:
inventory.yml,playbooks/config-nextdns.yml