feat(makefile): add EXTRA passthrough to check/deploy for ad-hoc ansible args
Lets an operator pass extra ansible-playbook args through make without bypassing it — e.g. -e ansible_host=<WAN> to manage a host over a relay-independent path during a cutover that restarts its own mesh relay. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
0194865437
commit
dfc64da2eb
1 changed files with 4 additions and 4 deletions
8
Makefile
8
Makefile
|
|
@ -56,8 +56,8 @@ help:
|
|||
@echo " make test-all Run Molecule tests for all roles"
|
||||
@echo " make test-integration HOST=<name> [CERTS=internal|le-staging] [KEEP=1] Run ADR-025 integration cycle against a VM"
|
||||
@echo " make test-integration-clean Prune stale integration-test VM snapshots"
|
||||
@echo " make check PLAYBOOK=<name> [LIMIT=<host>] [TAGS=<tags>] Dry-run a playbook (check mode)"
|
||||
@echo " make deploy PLAYBOOK=<name> [LIMIT=<host>] [TAGS=<tags>] Run a playbook against production"
|
||||
@echo " make check PLAYBOOK=<name> [LIMIT=<host>] [TAGS=<tags>] [EXTRA=<args>] Dry-run a playbook (check mode)"
|
||||
@echo " make deploy PLAYBOOK=<name> [LIMIT=<host>] [TAGS=<tags>] [EXTRA=<args>] Run a playbook against production"
|
||||
@echo " make edit-vault [VAULT=<path>] Edit the vault in nvim (auto re-encrypts + checks)"
|
||||
@echo " make check-vault [VAULT=<path>] Validate vault structure (values masked)"
|
||||
@echo " make encrypt FILE=<path> Encrypt a vault file"
|
||||
|
|
@ -128,13 +128,13 @@ check:
|
|||
ifndef PLAYBOOK
|
||||
$(error PLAYBOOK is required: make check PLAYBOOK=<name>)
|
||||
endif
|
||||
$(PLAYBOOK_BIN) $(INVENTORY) $(VAULT_ARGS) $(if $(LIMIT),--limit $(LIMIT)) $(if $(TAGS),--tags $(TAGS)) --check --diff playbooks/$(PLAYBOOK).yml
|
||||
$(PLAYBOOK_BIN) $(INVENTORY) $(VAULT_ARGS) $(if $(LIMIT),--limit $(LIMIT)) $(if $(TAGS),--tags $(TAGS)) $(EXTRA) --check --diff playbooks/$(PLAYBOOK).yml
|
||||
|
||||
deploy:
|
||||
ifndef PLAYBOOK
|
||||
$(error PLAYBOOK is required: make deploy PLAYBOOK=<name>)
|
||||
endif
|
||||
$(PLAYBOOK_BIN) $(INVENTORY) $(VAULT_ARGS) $(if $(LIMIT),--limit $(LIMIT)) $(if $(TAGS),--tags $(TAGS)) playbooks/$(PLAYBOOK).yml
|
||||
$(PLAYBOOK_BIN) $(INVENTORY) $(VAULT_ARGS) $(if $(LIMIT),--limit $(LIMIT)) $(if $(TAGS),--tags $(TAGS)) $(EXTRA) playbooks/$(PLAYBOOK).yml
|
||||
|
||||
# ── Vault ─────────────────────────────────────────────────────────────────────
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue