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 026B53570D4 for ; Wed, 27 Aug 2025 14:28:46 +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=1756304926; cv=none; b=SsFfuOqelozeMowPe8nxMr9Ftf/JiVfxIF2vqmpOJxSAvAPuaLWADcYQB+6fvI9irkZvBomtT0YJ+l8u8v5tqH78veAOXHsOXJqxEYXJW/oxzsng/loMoQ7Bjp5o49XdX/zimXrM7TerFMgm88vyHZsRdeYdhJ3zpC1C68otFf4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756304926; c=relaxed/simple; bh=0sfS3CEFcZZnGPMquC69ojZPuHAZotPlNza0Uli5+VE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=l1Ye4vtte2nElUglK7gtWIoJNozi0ppS5YqdQ8RNnyhOHVlLjTFdzGIjneJeBdIqY+8R3/004G9utNSlvtUQjq9tvym99RJZ9TLchl0wyBU1doF7AS/onLW7SanYTIG47RMcqip+1jA5osb/zyfAiZAKnzdDCf0sRz5qg3pL6ug= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NOdXM9cm; 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="NOdXM9cm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A552DC4CEEB; Wed, 27 Aug 2025 14:28:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1756304925; bh=0sfS3CEFcZZnGPMquC69ojZPuHAZotPlNza0Uli5+VE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NOdXM9cmTLTs3X4cff+OiyLU8vz+zEHkhVvEcUqovSB0Xw6HNdLCE5lo4OErz1kTO UWKQrx1E9XB7ibgHjtO9bq1qahe3JLoTUp0+JhgekvP4GawEKnEOz3+ByJzI6h3ObH Jc5AmPROBN9vGtYUeWOzPUyBbWphxr62TgOv7+E9fQDSBHwi6ZEz8+9OLX20FA0Pmo IfVIJM8wAZSqzO3rkg5LiBtLCt5zNIyfGh5lhqmj58nZD0mwe9xqe/QnWioulKhHzt FdTmPH81XSlApSL16InQOwjgvZ06E8FoW8ZEEASlsdT/VcB8wHGkZ/oKaOVfHQxe/f nbMlAR+ZccybQ== From: Chuck Lever To: Cc: Chuck Lever Subject: [PATCH v1 26/26] Add an Ansible requirements.yml file Date: Wed, 27 Aug 2025 10:28:21 -0400 Message-ID: <20250827142832.2629291-27-cel@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20250827142832.2629291-1-cel@kernel.org> References: <20250827142832.2629291-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 Question: Do we assume that the Ansible controller has internet access all the time? 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