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 5FE313064B9 for ; Tue, 2 Sep 2025 13:54:42 +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=1756821282; cv=none; b=nuEmLm6WZRxB3cl8fowRM3XB+cnXfH8bGeuW2E4/x9CNz+RBApceCTR7XouUjGOx1OYs76YoJQKcudicYNOeyClKPGlo9y0XBgCvIjtJU4I8HGlypQMyZ/EOJrUAXLxw/sOfL+9dzA4d4B70ZDG/W+fWAsp1EtJHf3SUhrSzbbI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756821282; c=relaxed/simple; bh=L7x5XazyUKFA/biUjF0p8w2tjSPRAmfKTu2EsQNMqD4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TRoucXSZ3XZWe0H2N7POgiZaCSLaUikU+n5+VOiE6YLYGL9tti+S4IeED50lfIh6K32itUcmxSPwsG4tGGpW0raaT85gw7RH0yUf2iXZ/IMw57ATGIYk+dPbEwXuve1+fofsAfgoi8qZg7bZ9FTNUuNNaosWHP/fUFQK+9mGBnY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=paV9PrIm; 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="paV9PrIm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EDC45C4CEF5; Tue, 2 Sep 2025 13:54:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1756821282; bh=L7x5XazyUKFA/biUjF0p8w2tjSPRAmfKTu2EsQNMqD4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=paV9PrImwNPrD0AjhVN+WECdPID2gH1CPbA/pCfL4F0a+TeGnEN6mSZDxyvUdeZ5y niUj2w4fNthei4gPNacZx7vWfE/hOYZEZlU5AiFnl0At+6WrRaoSpfbK3DozaRZ/v5 gZq+7dv13mtM0qEx/uxZHNumy6u84U5tbV9B+FOYZnnmhVh8f2zoX3aY4J/9LXCnQN apSjhNaLTgKeOdke4TBOO2GSLM0TPwBAwax+nPJ0dzbSEPToMXXmkGRtoDGBQlhRDG yfu3rucpY8KM/BYvf0XepAvhnJLPXuyih+P7i36bjuZpoFadeqUxIZiE0nnSeuZNbn d6VvxMXBT4Tkg== From: Chuck Lever To: Cc: Chuck Lever , Luis Chamberlain Subject: [PATCH v2 26/37] Add an Ansible requirements.yml file Date: Tue, 2 Sep 2025 09:54:13 -0400 Message-ID: <20250902135426.815079-27-cel@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20250902135426.815079-1-cel@kernel.org> References: <20250902135426.815079-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..4efcf3e93b0e 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