From patchwork Thu Feb 6 21:55:06 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Gomez X-Patchwork-Id: 13963806 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 6FED722DF9A for ; Thu, 6 Feb 2025 21:55: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=1738878921; cv=none; b=T18hPURvNGjBG1BQlS7fc5+ERqa4nFHYJpUboJ7sGZM+qU/OdAbPpLNF+6hcjBsEKQWQYDcKPimUeUrPANOderQ5Q9uuiJ2CRPbVBk+SWC4HSa79xZB65Ry8gkf5RX4Mc3IR5+h4VKzo+COH4FgvMM0ILL3HBF1noT/KBBKe8XA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738878921; c=relaxed/simple; bh=PnCPEbhdZuiD2HzwPkDgTWyAjIlSyETiYnXvrP5+9X4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=mpt3KHeRc9LLyIuYIAEVI1FwQBvCEJmSV/aHPtbasMuWqa7Y4XsWhK37BONQq2J4E95F1dMSJpNHV0z9IFR+TN3FjlkgwkHu1D6GOfQXf1aW3pcJ42AL/AN8+Ytuln78pUahBpxQrPdrrZW5PY90N/YACIXrSrAqC5YXbfLAO44= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Jx2Q8ry4; 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="Jx2Q8ry4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 61138C4CEDF; Thu, 6 Feb 2025 21:55:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1738878921; bh=PnCPEbhdZuiD2HzwPkDgTWyAjIlSyETiYnXvrP5+9X4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=Jx2Q8ry4O8ZCdXUQ8qjJ4gAA7LiPlwDWuT7KdQW7rOIBOkj6Mi4iX3jsCURKrau8K 1Vns/5xymJTtr+0gyAwknVSTe5FLZNWqhC8Pd39lbL1JxoxrNB0YfEoU3AseH+6jDl UKAEmaYv4saVunJEWcbVYQM7orevNQJjRaLyBzyJBtFEQRIZ1Nv4q3U5/vO1OlmaAa OBbpD366rvI1p40VAAfFbprxIoWGOvlW4msMrH2+faZyD9nsjlPmTbho7Sd6eSlpCG GQGaqT4muhtvA8gQe3C16CkWgI/prGwqbA5LuIyPslXSzLhCUvhOGD6ETdarMpXP8o hashdS7CKSPGA== From: da.gomez@kernel.org Date: Thu, 06 Feb 2025 21:55:06 +0000 Subject: [PATCH 1/4] install_terraform: fix missing deps 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-1-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 In a freshed Debian Testing machine, Terraform can't be extracted because it requires zip to be present. Add a task to check Terraform packages before unpacking Terraform release. Error: "msg": "Failed to find handler for \"/home/dagomez/.ansible/tmp/ansible-tmp-1738158342.0404465-41967-103098 632274351/terraform_1.2.3_linux_amd649158dhyg.zip\". Make sure the required command to extract the file is installed.\nCommand \"/usr/bin/tar\" could not handle archive: Unable to list files in the archive: /usr/bin/tar: This does not look like a tar archive\n/usr/bin/tar: Skipping to next header\n/usr/bin/tar: Exiting with failure status due to previous errors\n\nUnable to find required 'unzip' or 'zipinfo' binary in the path.\nCommand \"/usr/bin/tar\" could not handle archive: Unable to list files in the archive: xz: (stdin): File format not recognized\n/usr/bin/tar: Child returned status 1\n/usr/bin/tar: Error is not recoverable: exiting now\n\nUnable to find required 'unzip' or 'unzip' binary in the path.\nCommand \"/usr/bin/tar\" could not handle archive: Unable to list files in the archive: zstd: /*stdin*\\: unsupported format \n/usr/bin/tar: Child returned status 1\n/usr/bin/tar: Error is not recoverable: exiting now\n\nCommand \"/usr/bin/tar\" could not handle archive: Unable to list files in the archive: bzip2: (stdin) is not a bzip2 file.\n/usr/bin/tar: Child returned status 2\n/usr/bin/tar: Error is not recoverable: exiting now\n" } Signed-off-by: Daniel Gomez --- .../roles/install_terraform/tasks/install-deps/debian/main.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/playbooks/roles/install_terraform/tasks/install-deps/debian/main.yml b/playbooks/roles/install_terraform/tasks/install-deps/debian/main.yml index 3397f403cbf53254c0ac0d8ff0468512eaf0f758..f7753f8667d950cf7d7d2b5ccbc0a89f9b882a69 100644 --- a/playbooks/roles/install_terraform/tasks/install-deps/debian/main.yml +++ b/playbooks/roles/install_terraform/tasks/install-deps/debian/main.yml @@ -6,6 +6,15 @@ failed_when: terraform_present.rc != 0 and terraform_present.rc != 1 tags: [ 'terraform', 'verify' ] +- name: Install Terraform Dependencies + become: true + become_method: sudo + ansible.builtin.apt: + name: + - unzip + state: present + update_cache: true + - name: Download Terraform from the latest release and install locally become: yes become_method: sudo