Add ansible playbook to setup and run L2 deployment #3

Merged
nabarun merged 10 commits from deep-stack/testnet-ops:ag-run-l2 into main 2024-09-05 07:58:00 +00:00
2 changed files with 23 additions and 0 deletions
Showing only changes of commit c42e211f6e - Show all commits

View File

@ -57,3 +57,21 @@ The following commands have to be executed in [`l2-setup`](./) directory
```bash
LANG=en_US.utf8 ansible-playbook -i localhost, --connection=local run-optimism.yml --extra-vars='{"target_host" : "localhost", "existing_contracts_deployment": true}' -kK --user $USER
```
## Check Deployment Status
- Run the following command in the directory where the optimism-deployment is created
- Follow optimism contracts deployment logs:
```bash
laconic-so deployment --dir optimism-deployment logs -f fixturenet-optimism-contracts
```
- Check L2 logs:
```bash
laconic-so deployment --dir optimism-deployment logs -f op-geth
# Ensure new blocks are getting created
```

View File

@ -80,6 +80,11 @@
src: "{{ artifact_path }}/l2_config/l2-jwt.txt"
dest: "{{ l2_directory }}/optimism-deployment/data/l2_config"
- name: Copy l2 accounts file
copy:
src: "{{ artifact_path }}/l2_accounts/accounts.json"
dest: "{{ l2_directory }}/optimism-deployment/data/l2_accounts"
when: existing_contracts_deployment
- name: Start L2-deployment