Install Nodegrid Ansible Libraries on Nodegrid OS
  • 06 Jun 2024
  • 1 Minute to read
  • Dark
    Light
  • PDF

Install Nodegrid Ansible Libraries on Nodegrid OS

  • Dark
    Light
  • PDF

Article summary

Installation on Nodegrid

The libraries can be installed by the default 'admin' user. Enable the Cluster feature to directly manage Nodegrid appliances part of the cluster setup. These steps are applicable when you use Nodegrid as a server. If you use Nodegrid as a Client, refer to the following article: Ansible Configuration on Remote Nodegrid Devices.

Step 1 - Download the library

Three ways to download this library:

  • Latest release from the Releases session;
  • Repository as a zip for a complete collection;
  • git clone command to duplicate the complete repository;

Download a Release or repository as zip

  • Connect to the WebUI (admin user)
  • Open File Manager and navigate to admin_group
  • Upload the downloaded .zip file into the folder
  • Close the File Manager window
  • Open a Console connection to Nodegrid device
  • (admin role) Use shell command
  • Navigate to /var/local/file_manager/admin_group/
cd /var/local/file_manager/admin_group/
  • extract the .zip file with
unzip <file_name>.zip

Use git clone command

  • Connect to the WebUI (admin user).
  • Open a Console connection to Nodegrid
  • Navigate to /var/local/file_manager/admin_group/
cd /var/local/file_manager/admin_group/
  • Clone the repository
git clone https://github.com/ZPESystems/Ansible.git

Step 2 - Install the library

With admin shell, navigate to the downloaded library location. Run the installation playbook.

ansible-playbook nodegrid_install.yml

To switch to ansible user.

sudo su - ansible

[Optional] Allow a user to connect to the ansible user via ssh

A user can be authorized access to the ansible user via ssh with the setup_authorize_user.yml playbook inside the examples folder. The user's ssh public key must be pasted in the playbook execution.

ansible-playbook ./examples/playbooks/setup/setup_authorize_user.yml

Was this article helpful?

ESC

Eddy AI, facilitating knowledge discovery through conversational intelligence