From e1afdc917214ff608b3b50e543373bc5d0c8e987 Mon Sep 17 00:00:00 2001 From: Adw8 Date: Tue, 17 Sep 2024 16:34:19 +0530 Subject: [PATCH] Handle prompt when cloning required repositories --- nitro-nodes-setup/run-nitro-nodes.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/nitro-nodes-setup/run-nitro-nodes.yml b/nitro-nodes-setup/run-nitro-nodes.yml index 036d940..d1798c9 100644 --- a/nitro-nodes-setup/run-nitro-nodes.yml +++ b/nitro-nodes-setup/run-nitro-nodes.yml @@ -30,15 +30,23 @@ recurse: yes - name: Clone go-nitro stack repo - command: laconic-so fetch-stack git.vdb.to/cerc-io/nitro-stack --git-ssh --pull + expect: + command: laconic-so fetch-stack git.vdb.to/cerc-io/nitro-stack --git-ssh --pull + responses: + "Are you sure you want to continue connecting \\(yes/no/\\[fingerprint\\]\\)\\?": "yes" + timeout: 300 ignore_errors: yes - name: Clone repositories required for nitro-stack - command: laconic-so --stack ~/cerc/nitro-stack/stack-orchestrator/stacks/nitro-node setup-repositories --git-ssh --pull + expect: + command: laconic-so --stack {{ ansible_env.HOME }}/cerc/nitro-stack/stack-orchestrator/stacks/nitro-node setup-repositories --git-ssh --pull + responses: + "Are you sure you want to continue connecting \\(yes/no/\\[fingerprint\\]\\)\\?": "yes" + timeout: 300 ignore_errors: yes - name: Build containers - command: laconic-so --stack ~/cerc/nitro-stack/stack-orchestrator/stacks/nitro-node build-containers --force-rebuild + command: laconic-so --stack {{ ansible_env.HOME }}/cerc/nitro-stack/stack-orchestrator/stacks/nitro-node build-containers --force-rebuild when: not skip_container_build - name: Generate spec file for L1 nitro node