diff --git a/nitro-bridge-setup/README.md b/nitro-bridge-setup/README.md index ce2c0db..5275292 100644 --- a/nitro-bridge-setup/README.md +++ b/nitro-bridge-setup/README.md @@ -62,18 +62,27 @@ The following commands have to be executed in [`nitro-bridge-setup`](./) directo - To deploy the L1 nitro contracts, execute the `deploy-contracts.yml` Ansible playbook by running the following command: - NOTE: By default, deployments are created in the `nitro-nodes-setup/out` directory. To change this location, update the `nitro_directory` variable in the [setup-vars.yml](./setup-vars.yml) file. + - For local deployment, specify the `"target_host": localhost` in the `--extra-vars` parameter: - ```bash - LANG=en_US.utf8 ansible-playbook -i localhost, --connection=local deploy-contracts.yml --extra-vars='{ "target_host": "localhost"}' --user $USER -kK - ``` + ```bash + LANG=en_US.utf8 ansible-playbook deploy-contracts.yml --extra-vars='{ "target_host": "localhost"}' --user $USER -kK + ``` + + - For remote deployment, provide an inventory and specify the `"target_host": nitro_host` in the `--extra-vars` parameter: + + ```bash + LANG=en_US.utf8 ansible-playbook -i ./hosts.ini deploy-contracts.yml --extra-vars='{ "target_host": "nitro_host"}' --user $USER -kK + ``` + + NOTE: By default, deployments are created in the `out` directory. To change this location, update the `nitro_directory` variable in the [setup-vars.yml](./setup-vars.yml) file. - For skipping container build, run with `"skip_container_build" : true` in the `--extra-vars` parameter: ```bash - LANG=en_US.utf8 ansible-playbook -i localhost, --connection=local deploy-contracts.yml --extra-vars='{ "target_host": "localhost", "skip_container_build": true }' --user $USER -kK + LANG=en_US.utf8 ansible-playbook -i ./hosts.ini deploy-contracts.yml --extra-vars='{ "target_host": "nitro_host", "skip_container_build": true }' --user $USER -kK ``` + ## Run nitro bridge - Copy the `bridge-vars-example.yml` vars file