From 00e7dc104edc6c7ab96b4112d9375740ef23a61c Mon Sep 17 00:00:00 2001 From: Adw8 Date: Thu, 5 Sep 2024 10:40:47 +0530 Subject: [PATCH] Copy contract files on remote machine --- l2-setup/run-optimism.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/l2-setup/run-optimism.yml b/l2-setup/run-optimism.yml index 79625b3..0ad2465 100644 --- a/l2-setup/run-optimism.yml +++ b/l2-setup/run-optimism.yml @@ -64,26 +64,25 @@ copy: src: "{{ artifact_path }}/l1_deployment/{{ l1_chain_id }}-deploy.json" dest: "{{ l2_directory }}/optimism-deployment/data/l1_deployment" + remote_src: "{{ target_host != 'localhost' }}" - name: Copy l2 configuration file copy: src: "{{ artifact_path }}/l2_config/{{ l1_chain_id }}.json" dest: "{{ l2_directory }}/optimism-deployment/data/l2_config" + remote_src: "{{ target_host != 'localhost' }}" - name: Copy allocs-l2 file copy: src: "{{ artifact_path }}/l2_config/allocs-l2.json" dest: "{{ l2_directory }}/optimism-deployment/data/l2_config" - - - name: Copy l2 jwt file - copy: - src: "{{ artifact_path }}/l2_config/l2-jwt.txt" - dest: "{{ l2_directory }}/optimism-deployment/data/l2_config" + remote_src: "{{ target_host != 'localhost' }}" - name: Copy l2 accounts file copy: src: "{{ artifact_path }}/l2_accounts/accounts.json" dest: "{{ l2_directory }}/optimism-deployment/data/l2_accounts" + remote_src: "{{ target_host != 'localhost' }}" when: existing_contracts_deployment