From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 40B681684B0 for ; Mon, 28 Jul 2025 01:14:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753665280; cv=none; b=t6w6vGmZt1sJ3tmbu5mnnwhIkf9+02wL7GUcMOi1+O3myKFLeaS02OjoubyNfAP6QVg1MxAmUUl4NyTOLGUw6rUTBFOfT6yuLOo2GS+Vuo78e69UPo64woXYOeA9ZJW5mIPXHMWjQFXoFsyZV34McoAUJH1VTwhEArCmnSh8tFs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753665280; c=relaxed/simple; bh=CpGJEENQQzdxbte6QYQLD4r1XUQ6HP6xXBLtaLN+X9c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=k/CbAI6zmGr8nCcRdXhuUJr7skzG0yVf5NYtw4NHdDdAoZRmZKWA+oZ2mgEyq2P/ejIkHEW5eKSdYx4eKv84VyCuHix4O9fOFD2wKHOFkn8XSSjBlEpACTeH+d47VVFpsCj6Ot5fhP89ltmFSW2kyt/SF5eKf55KLZc83MCKk3c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=kernel.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=gBKsjDwq; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="gBKsjDwq" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description; bh=hoAjcdYRpGrluZCe9r8hetqbkiY1NHQzvLU4gKGY/Eo=; b=gBKsjDwqA1/kCf+yHduwN9iB52 f1EuBIRVqTrH/JsH9HWhwQJRRgFzORo1+WkawTsTLItq/krqD/1W+svRMlAIBbIZIEmI8URls/boY tFhrM9/rbOemfNkInkGaavIp/mFzRgannUyQalBfk2CwAOjNmisyTZLgTyn4UvHzFQY99rSUhYqeN uFKFDNHW/Ur43/3xiqZSLjPjtX9IDoyUVW1zDvvziRhe6tS2jExyVyXwyHjq9ZGZrksZw/Xy9Msca TAQvz8XedV7KLKI3ekZSE0+hPIeb9Vb7QqPo724dRcq2DiLltGEqWT6JQ3S+zujSAqPc/npHI7tPH 1SCH9QFA==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.98.2 #2 (Red Hat Linux)) id 1ugCRn-0000000DPjJ-3PiG; Mon, 28 Jul 2025 01:14:35 +0000 From: Luis Chamberlain To: Chuck Lever , Daniel Gomez , kdevops@lists.linux.dev Cc: Chuck Lever Subject: [PATCH v2 09/33] Switch to the cloud.terraform.terraform module Date: Sun, 27 Jul 2025 18:14:09 -0700 Message-ID: <20250728011434.3197091-10-mcgrof@kernel.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250728011434.3197091-1-mcgrof@kernel.org> References: <20250728011434.3197091-1-mcgrof@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 Sender: Luis Chamberlain From: Chuck Lever It appears that community.general.terraform is planned for deprecation, so switch over to it's replacement. Bonus: The replacement module has a "binary_path" parameter that might facilitate the use of OpenTofu instead of terraform. Signed-off-by: Chuck Lever --- playbooks/roles/terraform/tasks/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/playbooks/roles/terraform/tasks/main.yml b/playbooks/roles/terraform/tasks/main.yml index 2e8762ab..dd478a04 100644 --- a/playbooks/roles/terraform/tasks/main.yml +++ b/playbooks/roles/terraform/tasks/main.yml @@ -1,9 +1,9 @@ --- - name: Bring up terraform resources - community.general.terraform: + cloud.terraform.terraform: + force_init: true project_path: "{{ topdir_path }}/terraform/{{ kdevops_terraform_provider }}" state: present - force_init: true tags: - bringup @@ -66,9 +66,9 @@ - destroy - name: Destroy terraform resources - community.general.terraform: + cloud.terraform.terraform: + force_init: true project_path: "{{ topdir_path }}/terraform/{{ kdevops_terraform_provider }}" state: absent - force_init: true tags: - destroy -- 2.47.2