From patchwork Wed Dec 18 10:30:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Granados X-Patchwork-Id: 13913377 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 E4C331D9A48 for ; Wed, 18 Dec 2024 10:30:12 +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=1734517813; cv=none; b=REUW4iovhMwoke0HTplqQvsibUBmtdg/ftN5F8vG6tGMU5jsqYhGiiSrvVPsoLHMSI9V1aHE81QvY/TZtsRw2hwvjMAN5XdOf1TOI3KznoMzpxezT23f4omXE2m7TmVEPKzWoxpkBqwYdVwYLexTnmhUXWHYSFMT/JNIjG/e4U0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734517813; c=relaxed/simple; bh=DvGfd4CLkmhlBD3vAsOZb4k3P/lxx9nbk6oF98SgWGs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=H/poT6Kl/RKBUw1H4cksK26Kgijgfz73delyJgn/3NF4y7GrAWJrqo/ZFSVjgnw7ExAko4ZPkYj8RILMlYj+FPHEmfPYDPEq+fxM8k9mMZXqR+0cm0ua7Vs5MJxP47ptrkeTqtWN4Ut+nDF3+WLb11DmOu0xPypZo9gVMr98Yt8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=J+tlpaKM; 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="J+tlpaKM" Received: by smtp.kernel.org (Postfix) with ESMTPS id 809BBC4CEEA; Wed, 18 Dec 2024 10:30:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1734517812; bh=DvGfd4CLkmhlBD3vAsOZb4k3P/lxx9nbk6oF98SgWGs=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=J+tlpaKMejeJkdn+0WcMTLKGWunxU5XFx3XE6id5QbcMB8wFxnbHUxuDRcYODlb34 9NV93BuL6si1UFeVHkoipOsG1wWVtQfReRQlqOvQzejSFedRZLxzYJRsa3fNtlBoyO UEfOqDLZ5DpBvd1oXqGcq3iu6txC6EmWDNl/7Y3hYwqAoGS2Sde+yT8rBapmXAKxnX NqxZG5VNCHVGFwdXUc34BfTEeoP5qcfMTpsHBsSx3hu/kqcteyVEAECiyFDv2vbPvp /sv/Cr9WD8rdfwJGCChg3wT5PQL8syDFLDqMkvkR6wwyksUnMF/IwRthSe2mRWws6+ x+Epy/UsSutnA== 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 775B1E7718B; Wed, 18 Dec 2024 10:30:12 +0000 (UTC) From: Joel Granados Date: Wed, 18 Dec 2024 11:30:02 +0100 Subject: [PATCH 08/12] ansible: Install libvirt deps and enable user Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241218-jag-bringup_fixes-v1-8-0bf2e07c640c@kernel.org> References: <20241218-jag-bringup_fixes-v1-0-0bf2e07c640c@kernel.org> In-Reply-To: <20241218-jag-bringup_fixes-v1-0-0bf2e07c640c@kernel.org> To: kdevops@lists.linux.dev Cc: Joel Granados , da.gomez@samsung.com X-Mailer: b4 0.15-dev-00a43 X-Developer-Signature: v=1; a=openpgp-sha256; l=1171; i=joel.granados@kernel.org; h=from:subject:message-id; bh=DvGfd4CLkmhlBD3vAsOZb4k3P/lxx9nbk6oF98SgWGs=; b=owJ4nAHtARL+kA0DAAoBupfNUreWQU8ByyZiAGdipC+/TB4qp0GWlRWlwn5A/+4LBYTHGLv+j XDeZ/mZSGrr8IkBswQAAQoAHRYhBK5HCVcl5jElzssnkLqXzVK3lkFPBQJnYqQvAAoJELqXzVK3 lkFPfLsL/0e+fVA/cbaMh0OyeYAz0gnO8felFvf45m+NBVC4zcG4jiXUgZT1b41d4AcvROplyqO fK2VrSatvGW8IDp9C74A6vKjhxdmrD98CI+Xa8CVbSiNkCM2mXEjFXStNDC+8Vry4hyOGFAnRtP WYBbl07rZFcPCg8HeTalwGaJDn1NSkgRkrxWkRM7GUFFvkK07GklnEdVuImwk8S0MqQP9x4VslT SeNHE4JH6lR6H5CLHHK7Q7f2GudwD9rbpfLxdyDeD9J4pi+x/1kGb1uxNaL5w3JYFyBa/8rc9f6 ULXL+9OcKbTik2HFs8evyiNUXnpUWrL1x4bL/GNJvNzn7FwoAAfrGrgKnhn0E3WpBKTetDawkC5 4EPlAth7NR9mBAq5cvViq3+DTu9tsc5Nn2gXNK/eQLqpOqEOoWo09c8bu7sj0b/7+pwkn4rGdeq Cap7HNo6osF/1rBcNGnwdtZV/HDlSilFxahtJfxSLi+IiBJlV74M+HJ4pl6J4NFHUQQbBV6mch8 po= 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 There is a need to setup libvirt when running `make bringup` in a system that does not have libvirt installed. Call the dpendency install and user enablement roles from the bringup task. Signed-off-by: Joel Granados --- playbooks/roles/bringup_guestfs/tasks/main.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/playbooks/roles/bringup_guestfs/tasks/main.yml b/playbooks/roles/bringup_guestfs/tasks/main.yml index 95631aa..c764ae4 100644 --- a/playbooks/roles/bringup_guestfs/tasks/main.yml +++ b/playbooks/roles/bringup_guestfs/tasks/main.yml @@ -38,6 +38,18 @@ when: guestfs_subdirectories.matched == 0 tags: [ 'config-check' ] +- name: Use install-dep tasks from libvirt_user role to install libvirt deps + include_role: + name: libvirt_user + tasks_from: install-deps/main.yml + tags: [ 'network' ] + +- name: Use enable-user tasks from libvirt_user role to enable user + include_role: + name: libvirt_user + tasks_from: enable-user/main.yml + tags: [ 'network' ] + - name: Check for dnsmasq configuration files stat: path: "{{ item }}"