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 47A793597C for ; Mon, 28 Jul 2025 00:18:03 +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=1753661887; cv=none; b=WIxmBrqPSHrVBUatqmliHN1x2oZaJRlRP4SYwUdwj2tevO4D4AB2UPjnXx2QzSefpdz4712+eaONIXxktxMoifMsJjOpLi7mYByAY5DM05ICHheVCqoZVZirtusgVUdDcUIzVsVY9SxRT7RmttD/s/lkkYyJfq5n/oxYoe195Gc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753661887; c=relaxed/simple; bh=8RQaZpQrXR+ITFDod/zCzkZmWiOA0wBekya1vR5ZE68=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=F0Fks/3U0fuTweF0xJg+h/tgIX13S7I4jOGmMhsnS4FXDH94bRdertwqil6x4z9SBdSrWg9sURHeQ7hvSzhSaqKpdCGyij9iFEM5OxM6hPtNrxEDvwj9/B3lNkYrVhrhCepQ0PpwAac5HukFcAKUTjro4Q8uR+fhSx+oP2MJpMs= 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=cilrdH/X; 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="cilrdH/X" 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=u6Z2vXfDQ+MHvfcreaCY+IcJZjmADp2XFJemajZc0io=; b=cilrdH/XF/Okwu4PnXnRskSmL7 4X006a5oGiYXOAWYDv97b+vg/x8+DXPYg0J6lTdbVJzigdxkf09gdgaYExRMc28XWCESw0m/InMHD B6BH6rXwLnyxbiKfqEcjYJALhi+BagO6gfU7acnxdXV2YwK34klMvXY9UxO6QUOhuhwL5QH3Bx7Gs g6TAF9aArBt3TpsINlvYrvXu4E60OE0ATRTGMcL3w09+l9Ju0kYmQ9+AgHn6ivxdIBPcuoiwph9uS DUpSOTsHHgAwIdSTe59ElFxImWF5lv598YsfwsOmPolU8wLYtOGP3xiWFVWj6wiWJObYXlbXECe1t VK2ppfRw==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.98.2 #2 (Red Hat Linux)) id 1ugBZ4-0000000DNWJ-1ZLk; Mon, 28 Jul 2025 00:18:02 +0000 From: Luis Chamberlain To: Chuck Lever , Daniel Gomez , kdevops@lists.linux.dev Cc: Chuck Lever Subject: [PATCH 14/40] terraform: Move "wait_for_connection" out of the terraform playbook Date: Sun, 27 Jul 2025 17:17:33 -0700 Message-ID: <20250728001800.3188617-15-mcgrof@kernel.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250728001800.3188617-1-mcgrof@kernel.org> References: <20250728001800.3188617-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 Refactor: The "wait_for_connection" task is the only one in the terraform playbook that targets all hosts. The other tasks are all done on the localhost. Subsequent patches will replace "delegate_to: localhost" with the usual role-wide setting. Signed-off-by: Chuck Lever --- playbooks/roles/terraform/tasks/main.yml | 6 ------ scripts/terraform.Makefile | 1 + 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/playbooks/roles/terraform/tasks/main.yml b/playbooks/roles/terraform/tasks/main.yml index 942efb7e..b50b417d 100644 --- a/playbooks/roles/terraform/tasks/main.yml +++ b/playbooks/roles/terraform/tasks/main.yml @@ -45,12 +45,6 @@ tags: - ssh -- name: Wait for target nodes to become reachable - ansible.builtin.wait_for_connection: - timeout: 60 - tags: - - ssh - - name: Remove the ephemeral ssh config file on the control host ansible.builtin.file: path: "{{ kdevops_ssh_config }}" diff --git a/scripts/terraform.Makefile b/scripts/terraform.Makefile index 91106b5b..f2f6fe0a 100644 --- a/scripts/terraform.Makefile +++ b/scripts/terraform.Makefile @@ -110,6 +110,7 @@ $(KDEVOPS_PROVISIONED_SSH): -i $(KDEVOPS_HOSTFILE) \ playbooks/terraform.yml --tags ssh \ --extra-vars=@./extra_vars.yaml + $(Q)ansible $(ANSIBLE_VERBOSE) -i hosts all -m wait_for_connection $(Q)touch $(KDEVOPS_PROVISIONED_SSH) status_terraform: -- 2.47.2