Skip to main content

Uniphore Customer Portal

Ansible Setup Using Playbooks

Follow the below procedure to setup Ansible using a playbook.

  1. In AWS console, verify the cluster instances and retrieve the IP addresses and hostnames.

  2. From local instance host

    • Deploy the SSH key in <GPU Instance IP_address>

    • Execute sudo su -

    • Verify yum updates

    • Reboot the instance

  3. From your local instance perform the following:

    • Copy the environments folder from the release package to your local.

      copy -R ~/infra/ansible/environments/<XX_filename>
      : ~/infra/ansible/environments/<your_filename>
      
      vi inventory.yml
      
  4. Modify the hostname and IP address details retrieved from AWS console and update inventory.yml. You can find the sample inventory.yml in the release package placed in infra\ansible\environments\demo\inventory.yml.

    Tip

    The hostnames should be in the .uniphore.com format.

    1. cd ~/infra/ansible/environments/your_filename/group_vars/all

    2. cd ~/infra/ansible

    3. Ensure that the password-ansible file is in ansible directory. Without that, you won’t be able to run ansible script.

  5. Execute the scripts that follow:

    ansible-playbook -i
    environments/your_filename/
    --vault-password-file password-ansible playbooks/u-analyze-setup.yml -vv
    

    Tip

    vv – Displays short logs.

    Note

    This may give you some error, so try to execute playbooks one-by-one from playbooks/u-analyze-setup.yml for better debugging.

  6. Login to swam manager (Node 1), ensure that GPU ASR service’s Current state is in running. It may take time for the status to get updated.

    ansible-playbook -i environments/your_filename/ --vault-password-file password-ansible playbooks/gpu-asr-engine-api.yml -vv