forked from cerc-io/testnet-ops
Update Ansible commands in README
This commit is contained in:
parent
8b43dc60a5
commit
0ca8f94e69
24
README.md
24
README.md
@ -8,9 +8,17 @@
|
||||
|
||||
- Optional: Set Locale Encoding to `UTF-8`
|
||||
|
||||
Ansible requires the locale encoding to be `UTF-8`. You can either set the system-wide locale or use the `LANG` prefix when running Ansible commands.
|
||||
Ansible requires the locale encoding to be `UTF-8`. You can either use the `LANG` prefix when running Ansible commands or set the system-wide locale.
|
||||
|
||||
- Option 1: Set System-Wide Locale
|
||||
- Option 1: Use `LANG` Prefix in Commands
|
||||
|
||||
If you prefer not to change the system-wide locale, you can use the `LANG` prefix when running Ansible commands:
|
||||
|
||||
```bash
|
||||
LANG=en_US.UTF-8 ansible-playbook your_playbook.yml
|
||||
```
|
||||
|
||||
- Option 2: Set System-Wide Locale
|
||||
|
||||
- Edit the `/etc/default/locale` file:
|
||||
|
||||
@ -18,24 +26,16 @@
|
||||
sudo nano /etc/default/locale
|
||||
```
|
||||
|
||||
- Set the `LANG` variable to en_IN.UTF-8:
|
||||
- Set the `LANG` variable to en_US.UTF-8:
|
||||
|
||||
```Copy code
|
||||
LANG="en_IN.UTF-8"
|
||||
LANG="en_US.UTF-8"
|
||||
```
|
||||
|
||||
- Reboot your system or log out and log back in to apply the changes.
|
||||
|
||||
- Reference: <https://udhayakumarc.medium.com/error-ansible-requires-the-locale-encoding-to-be-utf-8-detected-iso8859-1-6da808387f7d>
|
||||
|
||||
- Option 2: Use `LANG` Prefix in Commands
|
||||
|
||||
If you prefer not to change the system-wide locale, you can skip the above step and use the `LANG` prefix when running Ansible commands:
|
||||
|
||||
```bash
|
||||
LANG=en_IN.UTF-8 ansible-playbook your_playbook.yml
|
||||
```
|
||||
|
||||
## Playbooks
|
||||
|
||||
- [nitro-bridge-demo-setup](./nitro-bridge-demo-setup/README.md)
|
||||
|
@ -13,13 +13,13 @@ The following commands have to be executed in [`nitro-bridge-demo-setup`](./) di
|
||||
NOTE: By default, deployments are created in the `nitro-bridge-demo-setup/out` directory. If you need to change this location, you can update the `nitro_directory` variable in the [vars.yml](./vars.yml) file.
|
||||
|
||||
```bash
|
||||
LANG=en_IN.utf8 ansible-playbook -i localhost, --connection=local run-bridge-demo.yml --extra-vars='{ "target_host": "localhost"}' --user $USER
|
||||
LANG=en_US.utf8 ansible-playbook -i localhost, --connection=local run-bridge-demo.yml --extra-vars='{ "target_host": "localhost"}' --user $USER
|
||||
```
|
||||
|
||||
- If you want to skip building the containers, set `"skip_container_build" : true` in the `--extra-vars` parameter:
|
||||
|
||||
```bash
|
||||
LANG=en_IN.utf8 ansible-playbook -i localhost, --connection=local run-bridge-demo.yml --extra-vars='{ "target_host": "localhost", "skip_container_build": true }' --user $USER
|
||||
LANG=en_US.utf8 ansible-playbook -i localhost, --connection=local run-bridge-demo.yml --extra-vars='{ "target_host": "localhost", "skip_container_build": true }' --user $USER
|
||||
```
|
||||
|
||||
- Follow steps from [Demo](https://git.vdb.to/cerc-io/nitro-stack/src/branch/main/nitro-bridge-demo.md#demo) to create mirror channels on L2, create virtual channel and make payments
|
||||
@ -29,7 +29,7 @@ The following commands have to be executed in [`nitro-bridge-demo-setup`](./) di
|
||||
- Run the following command to reset demo:
|
||||
|
||||
```bash
|
||||
LANG=en_IN.utf8 ansible-playbook -i localhost, --connection=local reset-demo.yml --extra-vars='{"target_host" : "localhost"}' -K --user $USER
|
||||
LANG=en_US.utf8 ansible-playbook -i localhost, --connection=local reset-demo.yml --extra-vars='{"target_host" : "localhost"}' -K --user $USER
|
||||
```
|
||||
|
||||
- Deployments are stopped
|
||||
@ -43,11 +43,11 @@ The following commands have to be executed in [`nitro-bridge-demo-setup`](./) di
|
||||
- To stop all deployments, run the `stop-deployments.yml` playbook in the `nitro-stack-demo` directory:
|
||||
|
||||
```bash
|
||||
LANG=en_IN.utf8 ansible-playbook -i localhost, --connection=local stop-deployments.yml --extra-vars='{"target_host" : "localhost"}' -K --user $USER
|
||||
LANG=en_US.utf8 ansible-playbook -i localhost, --connection=local stop-deployments.yml --extra-vars='{"target_host" : "localhost"}' -K --user $USER
|
||||
```
|
||||
|
||||
- If you also want to remove the deployments, set `"remove_deployment_dir" : true` in the `--extra-vars` parameter when running the playbook:
|
||||
|
||||
```bash
|
||||
LANG=en_IN.utf8 ansible-playbook -i localhost, --connection=local stop-deployments.yml --extra-vars='{"target_host" : "localhost", "remove_deployment_dir" : true}' -K --user $USER
|
||||
LANG=en_US.utf8 ansible-playbook -i localhost, --connection=local stop-deployments.yml --extra-vars='{"target_host" : "localhost", "remove_deployment_dir" : true}' -K --user $USER
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user