From af6acdfc210ef3085a0f2b0a4d54164e6e2bed01 Mon Sep 17 00:00:00 2001 From: Adw8 Date: Fri, 6 Sep 2024 12:07:12 +0530 Subject: [PATCH] Add README steps to deploy nitro contracts on remote machine --- nitro-bridge-setup/README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/nitro-bridge-setup/README.md b/nitro-bridge-setup/README.md index 127eb22..200883a 100644 --- a/nitro-bridge-setup/README.md +++ b/nitro-bridge-setup/README.md @@ -4,6 +4,32 @@ To get started, follow the [installation](../README.md#installation) guide to setup ansible on your machine +## Setup Remote Hosts + +To run the playbooks on a remote machine, follow these steps: + +- In the [`nitro-bridge-setup`](./) directory, create a new file named hosts.ini: + + ```bash + cp ../example-hosts.ini hosts.ini + ``` + +- Edit the [`hosts.ini`](./hosts.ini) file to run the playbook on a remote machine + + ```bash + [nitro_host] + hostname ansible_host= ansible_user= ansible_ssh_common_args='-o ForwardAgent=yes' + ``` + + - Replace `host_name` with the alias of your choice. + - Replace `` with the IP address or hostname of the target machine. + - Replace `` with the SSH username (e.g., dev, ubuntu). + +- Verify that you are able to connect to the host using the following command + + ```bash + ansible all -m ping -i hosts.ini + ``` ## Run Nitro Bridge - Copy the `bridge-vars-example.yml` vars file