From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0A90E28DF0C for ; Fri, 1 Aug 2025 19:46:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754077601; cv=none; b=qCXhye5u2E2UVi5IuXdWezwaoIsWbBsN0B0Dmpz4oKUwbTfjc2R7ezmFy92BGKh0yhPfvpG7vgftnnd2N+4vkRl0dLZNeugv38Pfg3MsD4DgiEfShasSbhBhwM63uWsnH5bn9LV9XGcfQud1DLlOKuaYVTvRP0ONK7M4yjoIZs8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754077601; c=relaxed/simple; bh=QhiP8EMK2P80YaHD1pJBVgnKgMzZv99O5BElzt1ab7g=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Hs0jPk31hAxi4PT2wkWa885Hm6GKAxoD+Dum5uc114F8Qj8gK2M53iGBEiZezOW9QRa3kBtkloBTKZrTDShYYqjLy6Nk2dnkXP6VXz/KaSX59APrN2BzIlxbA3c1//NynjDyY8YuZkJZBrSh3REORf8f3wKa3QqUSHpiADSc3WA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=kernel.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=K3xU4st+; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="K3xU4st+" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description; bh=PPBpN53b5JNEsG9kHLnHhFjSxzsezaTbWuURehWvlRM=; b=K3xU4st+B+Jo+eMABacWHmb62B +RhwvOYiBIx4UrsmiVMqLN3kTGxVxiairah3DSx3qtV/ZnbF4JhByCnxgPD1LdzhPZEzIhrfkFAdg Lh2FLPXg1+eYW2HpltoWGJCgR4H46gt8CwZXsZY//7E3x8Tgi4rTpm+6b7Zx3NUnaieVH/aGp278b gHeYTur0f0vZGHkyrT0FMHhtmL447+HRD6Ax964XQ8ZZSZhOQPxC73GccP4y0eXVRL8uNh35ZVVJO HL7Wr8ZxXeKdVuE+xTyf1ZPzZ2G7bMaur5yFLKqLlINEeEeS8cWdlub06cTlPgkDvzctXzJwdjeqb h/zPrCTQ==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.98.2 #2 (Red Hat Linux)) id 1uhvi9-00000006hrT-0Guk; Fri, 01 Aug 2025 19:46:37 +0000 From: Luis Chamberlain To: Chuck Lever , Daniel Gomez , kdevops@lists.linux.dev Cc: Luis Chamberlain , Daniel Gomez Subject: [PATCH v3 02/11] Makefile: suppress Ansible warnings during configuration generation Date: Fri, 1 Aug 2025 12:46:26 -0700 Message-ID: <20250801194635.1598544-3-mcgrof@kernel.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250801194635.1598544-1-mcgrof@kernel.org> References: <20250801194635.1598544-1-mcgrof@kernel.org> Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Luis Chamberlain The initial configuration generation playbooks (ansible_cfg.yml, gen_hosts.yml, and gen_nodes.yml) run without a proper inventory file by design, as they are responsible for creating the configuration files that will be used by subsequent playbooks. This causes Ansible to emit warnings about: - "No inventory was parsed, only implicit localhost is available" - "provided hosts list is empty, only localhost is available" These warnings are harmless but create noise in the build output, potentially confusing users who might think something is wrong. Add ANSIBLE_LOCALHOST_WARNING=False and ANSIBLE_INVENTORY_UNPARSED_WARNING=False environment variables to these three ansible-playbook invocations to suppress these specific warnings. This makes the build output cleaner while maintaining the same functionality. The warnings were appearing because: 1. ansible_cfg.yml creates the ansible.cfg file 2. gen_hosts.yml creates the hosts inventory file 3. gen_nodes.yml creates the kdevops_nodes.yaml file All three intentionally run with "--connection=local" and minimal inventory since they're bootstrapping the configuration that other playbooks will use. Generated-by: Claude AI Reviewed-by: Daniel Gomez Signed-off-by: Luis Chamberlain --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 37c2522be8be..31f544e9dd9c 100644 --- a/Makefile +++ b/Makefile @@ -195,7 +195,8 @@ include scripts/gen-nodes.Makefile false) $(ANSIBLE_CFG_FILE): .config - $(Q)ansible-playbook $(ANSIBLE_VERBOSE) --connection=local \ + $(Q)ANSIBLE_LOCALHOST_WARNING=False ANSIBLE_INVENTORY_UNPARSED_WARNING=False \ + ansible-playbook $(ANSIBLE_VERBOSE) --connection=local \ --inventory localhost, \ $(KDEVOPS_PLAYBOOKS_DIR)/ansible_cfg.yml \ --extra-vars=@./.extra_vars_auto.yaml @@ -226,13 +227,15 @@ endif DEFAULT_DEPS += $(ANSIBLE_INVENTORY_FILE) $(ANSIBLE_INVENTORY_FILE): .config $(ANSIBLE_CFG_FILE) $(KDEVOPS_HOSTS_TEMPLATE) - $(Q)ansible-playbook $(ANSIBLE_VERBOSE) \ + $(Q)ANSIBLE_LOCALHOST_WARNING=False ANSIBLE_INVENTORY_UNPARSED_WARNING=False \ + ansible-playbook $(ANSIBLE_VERBOSE) \ $(KDEVOPS_PLAYBOOKS_DIR)/gen_hosts.yml \ --extra-vars=@./extra_vars.yaml DEFAULT_DEPS += $(KDEVOPS_NODES) $(KDEVOPS_NODES): .config $(ANSIBLE_CFG_FILE) $(KDEVOPS_NODES_TEMPLATE) - $(Q)ansible-playbook $(ANSIBLE_VERBOSE) --connection=local \ + $(Q)ANSIBLE_LOCALHOST_WARNING=False ANSIBLE_INVENTORY_UNPARSED_WARNING=False \ + ansible-playbook $(ANSIBLE_VERBOSE) --connection=local \ --inventory localhost, \ $(KDEVOPS_PLAYBOOKS_DIR)/gen_nodes.yml \ --extra-vars=@./extra_vars.yaml -- 2.47.2