diff --git a/README.md b/README.md index f04d915..931b99e 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ - Set the `LANG` variable to en_US.UTF-8: - ```Copy code + ``` LANG="en_US.UTF-8" ``` diff --git a/l2-setup/README.md b/l2-setup/README.md index 1ed8616..ae31893 100644 --- a/l2-setup/README.md +++ b/l2-setup/README.md @@ -36,7 +36,7 @@ The following commands have to be executed in [`l2-setup`](./) directory - To setup and run L2, execute the `run-optimism.yml` Ansible playbook by running the following command. - NOTE: By default, deployments are created in the `l2-setup/out` directory. To change this location, update the `l2_directory` variable in the [vars.yml](./vars.yml) file. + NOTE: By default, deployments are created in the `l2-setup/out` directory. To change this location, update the `l2_directory` variable in the [setup-vars.yml](./setup-vars.yml) file. ```bash LANG=en_US.utf8 ansible-playbook -i localhost, --connection=local run-optimism.yml --extra-vars='{ "target_host": "localhost"}' -kK --user $USER diff --git a/l2-setup/run-optimism.yml b/l2-setup/run-optimism.yml index 79625b3..0555a8b 100644 --- a/l2-setup/run-optimism.yml +++ b/l2-setup/run-optimism.yml @@ -34,10 +34,7 @@ command: laconic-so --stack ~/cerc/fixturenet-optimism-stack/stack/fixturenet-optimism build-containers --force-rebuild when: not skip_container_build - - name: Remove any dangling docker images - command: docker image prune -f - - - name: Copy over spec file for L2 deployment + - name: Generate spec file for L2 deployment template: src: "./templates/specs/l2-spec.yml.j2" dest: "{{ l2_directory }}/optimism-spec.yml" @@ -64,26 +61,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