From patchwork Mon Jan 13 11:53:04 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Granados X-Patchwork-Id: 13937229 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 3BB121CAA9F for ; Mon, 13 Jan 2025 11:53:15 +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=1736769196; cv=none; b=OVfVenURafj8s8hz/e0pf5T5+3EIDvbvaB4OkYm/kXcLKUACxHSzq6mke9PPtsGu9vrD0kUgql6G2BiYnlaUfFqxcOIPNgSy4Ogh4EFIf94hNR13FdhgmuZp75ysnDsw2hAX6V3T3TONoHR3nrSa9dNBXWr7lTTPKdIvEW8LgWg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736769196; c=relaxed/simple; bh=kK8WYlj3lCiI+bWD9/rTi5l4rFK8spbgf35AT9VzodE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Zz0ez369rPPrxmatkynBTQfS79uePxqhPV5aXW4NOTNpD44DI8DECn8r/uYEwyYjaqDCgstjEK464w02YWgWmuM0VuBrS1kYsLThhUbgDr4R085AC8uMYFlFSQQdAS81Ii3y6CnUyRH3thEhrt8M++tq54bd4iEvgJ8Lhy+PkXY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=qlxPw571; 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="qlxPw571" Received: by smtp.kernel.org (Postfix) with ESMTPS id C7847C4CEEE; Mon, 13 Jan 2025 11:53:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1736769195; bh=kK8WYlj3lCiI+bWD9/rTi5l4rFK8spbgf35AT9VzodE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=qlxPw571DjkIgCJsmtyb3PELxOg8Jz/7LKXqSIn5LHRxZ/6eSfERa97e1rb11ucYM 9/ShozYrWNWp2pmiGlQ8nO7PLaYJ/GJ2zoh78M++0HOUDREqrOo8OGfELDZksFlRtk kTeLTO5kl5TZNNSoKRG82IUNzGVI61fgC5e90TjTPE5iOLqT9hlkV/5j+pbLJELOd6 d1Wv/Q5r3C1L8vi7LsvqfdQLFM0TDwYxpKmB/8YkH66Nm2C4+fxPdyu5/K0Mw2ssHq xnxPY7ulG1Uy2/IhNCrcNCBugOUoGPKqBOkayj4gs2Swv50Nh4UENANmgBMYNIRy3L rX1ke0NIzp9uw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id B88A7C02183; Mon, 13 Jan 2025 11:53:15 +0000 (UTC) From: Joel Granados Date: Mon, 13 Jan 2025 12:53:04 +0100 Subject: [PATCH RESEND 06/12] ansible: Use full paths when importing tasks Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250113-jag-bringup_fixes-v1-6-fb28030b1f26@kernel.org> References: <20250113-jag-bringup_fixes-v1-0-fb28030b1f26@kernel.org> In-Reply-To: <20250113-jag-bringup_fixes-v1-0-fb28030b1f26@kernel.org> To: kdevops@lists.linux.dev Cc: Joel Granados , mcgrof@kernel.org, da.gomez@samsung.com X-Mailer: b4 0.15-dev-00a43 X-Developer-Signature: v=1; a=openpgp-sha256; l=2953; i=joel.granados@kernel.org; h=from:subject:message-id; bh=kK8WYlj3lCiI+bWD9/rTi5l4rFK8spbgf35AT9VzodE=; b=owJ4nAHtARL+kA0DAAoBupfNUreWQU8ByyZiAGeE/qW2akKCceaIlZdov3dN8E5BhqnWe1L/X Jss1o+eRPft94kBswQAAQoAHRYhBK5HCVcl5jElzssnkLqXzVK3lkFPBQJnhP6lAAoJELqXzVK3 lkFPgNcL/jv2sT+JYlAjwgBRa1xH4d/OFJTDnhddeGwKOdymIOMPtXzO8/oq0CS5L7Ms7zXh/Gx yWge6T7J3RXv3Jl6VcKaIKontZaEMmj8QRv53IdvN6A/+JndTyTthnHucBKwXqV6OtqiP0zw1WD qVifuLf40Pig9AMjmAmrDiPbpKPfJ1rKStfaHxhU+7eE/uvjtwRbDxurTY5ELVRLBeIhgvR6iwM i2sgEjaWwx9KNevVbIrUsdI3/xpfmSTJ35yOvK/BznXBp3uyZljLLCMa/cz8fB1+cDlW9oE6UKZ zFaDdN1aeEGXwktcUxbRBadob5a5ECA3ClJ8t935eqLHrygnLOglsTw94Nlo700+Id7+0P7c6xA A4IiVpewoBZw1+ZOfgDUXwGbTCv/9veenivemR2M5GP4H8/jIrOsR/XqJMGFHNdy/Oxiff3xZHz icoLMOsFDxc0vsfNv1xUVFm9XfV50HMxhK2PAwo/upvcASN8DNK0OV1z71rJr5jXaRHh5mDNdF8 9Y= X-Developer-Key: i=joel.granados@kernel.org; a=openpgp; fpr=F1F8E46D30F0F6C4A45FF4465895FAAC338C6E77 X-Endpoint-Received: by B4 Relay for joel.granados@kernel.org/default with auth_id=239 This allows importing libvirt_user tasks without the hassle of changing relative paths. Signed-off-by: Joel Granados --- playbooks/roles/libvirt_user/tasks/enable-user/main.yml | 8 ++++---- playbooks/roles/libvirt_user/tasks/install-deps/main.yml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/playbooks/roles/libvirt_user/tasks/enable-user/main.yml b/playbooks/roles/libvirt_user/tasks/enable-user/main.yml index 364d625..2c632f2 100644 --- a/playbooks/roles/libvirt_user/tasks/enable-user/main.yml +++ b/playbooks/roles/libvirt_user/tasks/enable-user/main.yml @@ -1,23 +1,23 @@ --- - name: Debian-specific set up - ansible.builtin.include_tasks: install-deps/debian/main.yml + ansible.builtin.include_tasks: "{{ role_path }}/tasks/enable-user/debian/main.yml" when: ansible_os_family == 'Debian' tags: [ 'build-deps' ] - name: SuSE-specific set up - ansible.builtin.include_tasks: install-deps/suse/main.yml + ansible.builtin.include_tasks: "{{ role_path }}/tasks/enable-user/suse/main.yml" when: ansible_os_family == 'Suse' tags: [ 'build-deps' ] - name: Red Hat-specific set up - ansible.builtin.include_tasks: install-deps/redhat/main.yml + ansible.builtin.include_tasks: "{{ role_path }}/tasks/enable-user/redhat/main.yml" when: - ansible_os_family == 'RedHat' - ansible_facts['distribution'] != "Fedora" tags: [ 'build-deps' ] - name: Fedora-specific set up - ansible.builtin.include_tasks: install-deps/fedora/main.yml + ansible.builtin.include_tasks: "{{ role_path }}/tasks/enable-user/fedora/main.yml" when: - ansible_os_family == 'RedHat' - ansible_facts['distribution'] == "Fedora" diff --git a/playbooks/roles/libvirt_user/tasks/install-deps/main.yml b/playbooks/roles/libvirt_user/tasks/install-deps/main.yml index c2f58c8..cd12e05 100644 --- a/playbooks/roles/libvirt_user/tasks/install-deps/main.yml +++ b/playbooks/roles/libvirt_user/tasks/install-deps/main.yml @@ -9,20 +9,20 @@ tags: vars - name: Distribution specific setup - import_tasks: debian/main.yml + import_tasks: "{{ role_path }}/tasks/install-deps/debian/main.yml" when: ansible_facts['os_family']|lower == 'debian' tags: [ 'build-deps' ] -- import_tasks: suse/main.yml +- import_tasks: "{{ role_path }}/tasks/install-deps/suse/main.yml" when: ansible_facts['os_family']|lower == 'suse' tags: [ 'build-deps' ] -- import_tasks: redhat/main.yml +- import_tasks: "{{ role_path }}/tasks/install-deps/redhat/main.yml" when: - ansible_facts['os_family']|lower == 'redhat' - ansible_facts['distribution']|lower != "fedora" tags: [ 'build-deps' ] -- import_tasks: fedora/main.yml +- import_tasks: "{{ role_path }}/tasks/install-deps/fedora/main.yml" when: ansible_facts['distribution']|lower == "fedora" tags: [ 'build-deps' ]