Ansible Setup Using Playbooks
Follow the below procedure to setup Ansible using a playbook.
In AWS console, verify the cluster instances and retrieve the IP addresses and hostnames.
From local instance host
Deploy the SSH key in <GPU Instance IP_address>
Execute
sudo su -
Verify yum updates
Reboot the instance
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
Modify the hostname and IP address details retrieved from AWS console and update
inventory.yml
. You can find the sampleinventory.yml
in the release package placed ininfra\ansible\environments\demo\inventory.yml
.Tip
The hostnames should be in the
.uniphore.com
format.cd ~/infra/ansible/environments/your_filename/group_vars/all
cd ~/infra/ansible
Ensure that the password-ansible file is in ansible directory. Without that, you won’t be able to run ansible script.
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.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