[PATCH RFT 6/6] Makefile: add explicit connection for inventory generation
Daniel Gomez <[email protected]>
| Newsgroups | dev.linux.lists.kdevops |
|---|---|
| Message-ID | <[email protected]> |
From: Daniel Gomez <[email protected]> Add --connection=local and --inventory localhost, to the inventory generation target since we're generating the hosts file and don't have a proper inventory available yet. This avoids inventory parsing warnings by being explicit about the execution context, following the same pattern as ansible.cfg generation. Generated-by: Claude AI Signed-off-by: Daniel Gomez <[email protected]> --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index edf62db6..90e8091d 100644 --- a/Makefile +++ b/Makefile @@ -258,8 +258,8 @@ include scripts/bringup.Makefile endif $(ANSIBLE_INVENTORY_FILE): .config $(ANSIBLE_CFG_FILE) $(KDEVOPS_HOSTS_TEMPLATE) $(KDEVOPS_EXTRA_VARS) - $(Q)ANSIBLE_LOCALHOST_WARNING=False ANSIBLE_INVENTORY_UNPARSED_WARNING=False \ - ansible-playbook $(ANSIBLE_VERBOSE) \ + $(Q)ansible-playbook $(ANSIBLE_VERBOSE) --connection=local \ + --inventory localhost, \ $(KDEVOPS_PLAYBOOKS_DIR)/gen_hosts.yml \ --extra-vars=@./extra_vars.yaml -- 2.50.1