Bring your Vagrant environment back up that you created earlier on and SSH onto the Ansible server. For this example, only ansible, mon1, and osd1 will be needed, as follows:
vagrant up ansible mon1 osd1
Add the Ansible ppa, as follows:
$ sudo apt-add-repository ppa:ansible/ansible
The preceding command gives the following output:
Update Advanced Package Tool (APT) sources and install Ansible:
$ sudo apt-get update && sudo apt-get install ansible -y
The preceding command gives the following output: