Perform the following steps to ensure that the Ansible Controller Node is properly configured.
Ansible uses SSH by default to communicate with the managed nodes that you want to automate. Each control node must be running Python 2.7 or Python 3.5 or later, and each SmartFabric OS10 switch must have SSH to communicate remotely with the Control Node.
A text editor must be installed on the Ansible Controller Node. This PoC uses Vim, which is an advanced and highly configurable text editor built to enable efficient text editing.
- Log onto the Ansible Controller Node.
- In the terminal window, run the following commands to install Python:
root@AnsibleNode:~# sudo apt-get install python
- Verify that Ansible is installed:
root@AnsibleNode:~# python - –version
- Add the Ansible PPA to the Control Node by running the following command:
root@AnsibleNode:~# sudo apt-add-repository ppa:ansible/ansible
- Refresh the system's packages index by running the following command:
root@AnsibleNode:~# sudo apt-get update
- Install the Ansible package by running the following command:
root@AnsibleNode:~# sudo apt-get install ansible
- Install the latest version of OS10 collection from Ansible Galaxy by running the following command:
root@AnsibleNode:~# ansible-galaxy collection install dellemc.os10
- To verify that Ansible is installed, run the following command:
root@AnsibleNode:~# ansible --version
- To install Vim on a Debian based-Linux distributor such as Ubuntu, run the following command:
root@AnsibleNode:~# sudo apt-get install vim