From mboxrd@z Thu Jan 1 00:00:00 1970 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 B7A3520B81B for ; Thu, 4 Sep 2025 15:15:41 +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=1756998941; cv=none; b=sVGuSHrfiZ6sL8+KB9PRulXHPnTP0FH28KJPXabZBcHXMJAqwrJc4VIlZ0ZAu/GHCuMVQ04s4IYBa7g6ds+bDMMlDLxf8R//6yJIM23vSxDR2YzmgxBABvSDRLQMF3DZtEEjQ/tmTp/lzQRjK9ehqoNR9FMQDghpNPZspAK7ZGA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756998941; c=relaxed/simple; bh=Tyc91K+7N4X3tPf5q15V7wqBoFqfgxWOQALdQ7m6oe0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=udK1TLIxkyP1O6ST0Etf6q0D2B+LUe0fFC3jSq+v+k4+o6+K/Ra6BMSBjLUv9L32rd3NdABUrm2loRcrpax1zkxV/1o7OZiNrYyjmMBdiDbAz1aVJ/XhaJKdexcSYxoqcRd3tXfkbm+mHY1NJYZbdV3Z1l1cBXtc68cN68hCZME= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=aqCqY5mQ; 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="aqCqY5mQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F155C4CEF7; Thu, 4 Sep 2025 15:15:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1756998941; bh=Tyc91K+7N4X3tPf5q15V7wqBoFqfgxWOQALdQ7m6oe0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aqCqY5mQj0b/l/tsX5bEinW9UcG8sBUhx916X6mp5WLcaWbsLrDjfXwjY2JZEsqSK 0VNnNx58dsTF+jdz0+7EKB/sYj4gP1kPs6Vxh+1zuIEWU7ToMyvwruprDUToY/C/Cg 1W/wa+klQcMKz5Y6PsTIrjGAhIjPgdFMn0rDX8ftkjdXr1keNhO1eyWERD1YYWnJtg noRc5WZMAoUCcz92+wHEYf8WpAK6QSJNeb4KX2cu3pwBnJSn4f9zcw+3r778SDdYXs 703tQFsVc0XOHpODr2RJ+cdtr5eEpO/PPmKMUC9Yn6tsi1wiGCBC0lQm+GBFpOrYBF AT8bsiKdzgmwA== From: Chuck Lever To: Cc: Chuck Lever , Luis Chamberlain Subject: [PATCH v3 25/36] Add an Ansible requirements.yml file Date: Thu, 4 Sep 2025 11:15:13 -0400 Message-ID: <20250904151526.1596282-26-cel@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20250904151526.1596282-1-cel@kernel.org> References: <20250904151526.1596282-1-cel@kernel.org> Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Chuck Lever Commit b90d89d27659 ("Switch to the cloud.terraform.terraform module") introduced the use of the cloud.terraform module, and commit 7ccb64834eeb ("guestfs: Replace scripts/destroy_guestfs.sh with an Ansible playbook") introduced the use of the community.libvirt module. It would be friendly if kdevops could pull in the Ansible modules it needs transparently. The requirements.yml file is a manifest of Ansible collections that the project needs to run. Installation of these collections is made automatic by adding: ansible-galaxy install -r requirements.yml to the "make ansible_cfg" step. This mechanism can keep cached versions of collections up to date, and can also constrain a cached collection to a specific version, if that's needed. The initial file contains requirements I could find easily, and should be updated over time as new collection dependencies are introduced. See also: https://docs.ansible.com/ansible/latest/user_guide/collections_using.html Reviewed-by: Luis Chamberlain Signed-off-by: Chuck Lever --- requirements.yml | 8 ++++++++ scripts/ansible.Makefile | 5 +++++ 2 files changed, 13 insertions(+) create mode 100644 requirements.yml diff --git a/requirements.yml b/requirements.yml new file mode 100644 index 000000000000..a22691d3f86b --- /dev/null +++ b/requirements.yml @@ -0,0 +1,8 @@ +--- +collections: + - name: ansible.posix + - name: ansible.utils + - name: cloud.terraform + - name: community.docker + - name: community.general + - name: community.libvirt diff --git a/scripts/ansible.Makefile b/scripts/ansible.Makefile index b0d2a8c12ee7..0ce8168fba8a 100644 --- a/scripts/ansible.Makefile +++ b/scripts/ansible.Makefile @@ -2,3 +2,8 @@ AV ?= 0 export ANSIBLE_VERBOSE := $(shell scripts/validate_av.py --av "$(AV)") + +ansible-requirements: + $(Q)ansible-galaxy install -r requirements.yml +PHONY += ansible-requirements +DEFAULT_DEPS += ansible-requirements -- 2.51.0