Skip to content

Commit 2eda779

Browse files
committed
Makefile: add explicit connection for inventory generation
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 Reviewed-by: Chuck Lever <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Daniel Gomez <[email protected]>
1 parent 9af1bff commit 2eda779

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,8 @@ include scripts/bringup.Makefile
258258
endif
259259

260260
$(ANSIBLE_INVENTORY_FILE): .config $(ANSIBLE_CFG_FILE) $(KDEVOPS_HOSTS_TEMPLATE) $(KDEVOPS_EXTRA_VARS)
261-
$(Q)ANSIBLE_LOCALHOST_WARNING=False ANSIBLE_INVENTORY_UNPARSED_WARNING=False \
262-
ansible-playbook $(ANSIBLE_VERBOSE) \
261+
$(Q)ansible-playbook $(ANSIBLE_VERBOSE) --connection=local \
262+
--inventory localhost, \
263263
$(KDEVOPS_PLAYBOOKS_DIR)/gen_hosts.yml \
264264
--extra-vars=@./extra_vars.yaml
265265

0 commit comments

Comments
 (0)