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 E4A2E1EE7B9 for ; Tue, 20 May 2025 20:33:21 +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=1747773202; cv=none; b=bLrM8aqfR2Sd5sUNZeEeqSQIDHSfGcfRdcdFBHdi1ZrzvpaoduQA25/+2s2NYpAx1veI+sNWxOFLF+DNndlex4My3Jd1klSLHvkGl880n3l9ExHUf4jbCqsi1dVRyirzcJstxhxUNQQ+s8e6mW/vIwyUTqR69RbcbKGbkkp7XDg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747773202; c=relaxed/simple; bh=9/p/5ydR+3R/8jrgVY+tHchD/4s4gNF7W21xhjX7AOg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Mbyr0KGWPnVY5py4VqJaBZx4LYyRa5lDrcIoN/1vKMxpm8/X/m6TloqJJcxplrwg9wKJgD+ExFhqIQVTmbeGQG/1hezLCc1q3n6ZNHteL1YCSogwHgVbpQeHMS/zBAAxJLblAuAUHGlFkUTMXtrZdfmcCeJDVtYBIZdX8a/I5O8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=eIkzeHmw; 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="eIkzeHmw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF69DC4CEE9; Tue, 20 May 2025 20:33:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1747773201; bh=9/p/5ydR+3R/8jrgVY+tHchD/4s4gNF7W21xhjX7AOg=; h=Date:Subject:To:Cc:References:From:Reply-To:In-Reply-To:From; b=eIkzeHmwDdx7lTYLCELSbHZf+9Wkq6PKfYkTrtqJC/ykxJLF0or+lgQpa3jFf5aVg 2Jt3j957K98WR6zJDNeG83cVxdfuqSNFuUzlDGm5EC+tLc8sYJBVz8Gh2iSmuJ2SNu XPNMemOHmrnjTBOhhhpudBDRDTKMdZjECh9lmS8ZnB780odiOkFR6m6YFn+3mFp1Qz PNmsSIuQo1d+GFAmxr9y2w5W1Il9pC7y/Rku54pzbaIzrnwscKk8WSvI3dqYuAGpeV t8AEiIvEsF7C7dx8td+TQFMqAOC4MZyUuImKjNVYvTQK5eE5TlOkaUBgmV9ci52qsJ /LtmhwcFUr7xw== Message-ID: <8e7b03ed-1c9d-459d-93d2-c76a6c3c0a94@kernel.org> Date: Tue, 20 May 2025 22:33:18 +0200 Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 3/4] bootlinux: Switch to import_tasks for install-deps To: cel@kernel.org, kdevops@lists.linux.dev Cc: Chuck Lever References: <20250519162131.381359-1-cel@kernel.org> <20250519162131.381359-4-cel@kernel.org> Content-Language: en-US From: Daniel Gomez Reply-To: da.gomez@kernel.org Organization: kernel.org In-Reply-To: <20250519162131.381359-4-cel@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 19/05/2025 18.21, cel@kernel.org wrote: > From: Chuck Lever > > The bootlinux role includes install-deps/main.yml, but > install-deps/main.yml imports the distribution-specific tasks. It's > better to avoid mixing import_tasks and include_tasks: > > https://docs.ansible.com/ansible/2.9/user_guide/playbooks_reuse_includes.html#including-and-importing-task-files > > Switch bootlinux/tasks/main.yml to use import_tasks. > > Signed-off-by: Chuck Lever Reviewed-by: Daniel Gomez > --- > playbooks/roles/bootlinux/tasks/main.yml | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/playbooks/roles/bootlinux/tasks/main.yml b/playbooks/roles/bootlinux/tasks/main.yml > index cb98ab3077e8..ab647d9862a8 100644 > --- a/playbooks/roles/bootlinux/tasks/main.yml > +++ b/playbooks/roles/bootlinux/tasks/main.yml > @@ -11,8 +11,8 @@ > tags: vars > > # Distro specific > -- name: Install dependencies > - include_tasks: > +- name: Install dependencies to build and install the Linux kernel > + ansible.builtin.import_tasks: In this case, both modules have the same behaviour when invoked with/without the --tags argument. So, it's okay doing the conversion. > file: install-deps/main.yml > > # We do this regardless of what distro you use