From patchwork Thu Feb 6 21:55:07 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Gomez X-Patchwork-Id: 13963808 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 92AC5225A52 for ; Thu, 6 Feb 2025 21:55:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738878922; cv=none; b=GMsDD7dXLlwK2IHO6DobljV6qkY+BfxP0mMAeTdIHWKcsQxsunFX6IzAvPjTQmZxzVLBWyD5qB922zQnfLrcCPglSLjPLQBkZxbeuJYreSGUyQh5xcuMNplOE1+v9iR/3BjpP5YsKLslGIkbdmgtcTc54262V7RQe5lxENkRZ3Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738878922; c=relaxed/simple; bh=WiWmflkEAbWThaYvgkqJONyozBSR89NiGkA5dLchYww=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=L8lUf6ROqHchAEL1kd0aUiq59ecvy+jxR1LhUl0pggQ6/IUPkt5yYeJJndXghqKEJGHHlyCygYOmHtDNyGt/IByD1dCA7Aad3VLqnA/608WHjU4Fq94elKBpHx4TvInix59pBfnDvyh2cWSgZr33TrWYcY6m7iB+r3WNc64ie3g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IyGo3jk+; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="IyGo3jk+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6CC1FC4CEE2; Thu, 6 Feb 2025 21:55:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1738878922; bh=WiWmflkEAbWThaYvgkqJONyozBSR89NiGkA5dLchYww=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=IyGo3jk+Q+WYXRPM4+ym2sfNk3+bLJLswcUXsI2ccugMifj2xJ7mJYOBiNIQUKPHn fcpXvoRSnCUvivlpdfOuaaA7hMrMZv4dDRurfBOkI5PZpPsit3Bo/++g1FaFcE04bQ HkYV3DD1fB0Z1NZLlxVVb3wzSwJj3h0qlUTnAHf+zHg2d5rLn+TGEqNVvvTA3mA0cL br6S/8ooaHyZX+RXXMr8diTwNkMPvmGOMwpf4XmuxaTsN9nnoHvy6UmVLfGyDSkP+1 9qkstkejdxxrXkCNqzgFB39Y7C1FrDL1Hi03ktc0nh31roDRXm2/PYuaJv7iXLCshQ daLwrfIi0c15w== From: da.gomez@kernel.org Date: Thu, 06 Feb 2025 21:55:07 +0000 Subject: [PATCH 2/4] linux-mirror: fix variable initialization Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250206-small-fixes-v1-2-4834edb167a3@samsung.com> References: <20250206-small-fixes-v1-0-4834edb167a3@samsung.com> In-Reply-To: <20250206-small-fixes-v1-0-4834edb167a3@samsung.com> To: Luis Chamberlain Cc: kdevops@lists.linux.dev, Daniel Gomez X-Mailer: b4 0.14.2 From: Daniel Gomez Fixes error: TASK [linux-mirror : Import optional extra_args file] ok: [localhost] => (item=/media/tarkir/dagomez/src/linux-kdevops/kdevops/extra_vars.yaml) TASK [linux-mirror : Fail if linux_mirror_nfs is enabled but user is not root] fatal: [localhost]: FAILED! => {} MSG: The conditional check 'linux_mirror_nfs | bool' failed. The error was: error while evaluating conditional (linux_mirror_nfs | bool): 'linux_mirror_nfs' is undefined The error appears to be in '/media/tarkir/dagomez/src/linux-kdevops/kdevops/playbooks/roles/linux-m irror/tasks/main.yml': line 19, column 3, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: - name: Fail if linux_mirror_nfs is enabled but user is not root ^ here Signed-off-by: Daniel Gomez --- playbooks/roles/linux-mirror/defaults/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/playbooks/roles/linux-mirror/defaults/main.yml b/playbooks/roles/linux-mirror/defaults/main.yml index 2839068c1244395fa392392f6f64ac616353a354..c95342591090b405c3b5ca02cedc27917b3e942f 100644 --- a/playbooks/roles/linux-mirror/defaults/main.yml +++ b/playbooks/roles/linux-mirror/defaults/main.yml @@ -23,3 +23,5 @@ mirror_stable_url: "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux mirror_torvalds_url: "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git" install_only_git_daemon: false + +linux_mirror_nfs: False