From 22d6db82dc16def88ba6127bce9cd937d6b742bc Mon Sep 17 00:00:00 2001 From: Adw8 Date: Tue, 3 Sep 2024 12:28:24 +0530 Subject: [PATCH] Add README steps to setup Ansible --- README.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/README.md b/README.md index e95d1ee..c70187c 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,37 @@ # testnet-ops +## Installation + +- Install [Ansible](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#installing-and-upgrading-ansible-with-pip) + +- Add location of the directory containing the ansible binary to your `PATH` + +- 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. + + - Option 1: Set System-Wide Locale + + - Edit the /etc/default/locale file: + + ```bash + sudo nano /etc/default/locale + ``` + + - Set the `LANG` variable to en_IN.UTF-8: + + ```Copy code + LANG="en_IN.UTF-8" + ``` + + - Reboot your system or log out and log back in to apply the changes. + + - Reference: + + - 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 + ```