![]() ![]() The first thing to do is to check if we can reach the host(s) by Ansible. Once we have Ansible installed, and we checked that it can be executed runningĬonfigured module search path = Īnsible python module location = /home/foo/venv/lib/python3.6/site-packages/ansibleĮxecutable location = /home/foo/venv/bin/ansible Just to show you how does it look like when the remote machine is not reachable with the command line ping I tried to ping another IP that is not in use. Given that we can already ssh into ubu-box-1 this a bit unnecessary, but for the methodology, let's use the command line ping program to see if the "remote" host is accessible on the IP level: (Stop with Ctrl-C) In order to improve your work-environment you could also add the above line to the end of the. ![]() You don't need to run any of the other command we ran earlier, as those installations are all in this virtual environment. Ubu-box-1 at 192.168.56.11 will be one of the hosts we would like to manage.įrom now on every time you would like to run ansible you'll log in to ubu-main and you'll have to load the Python virtualenv. Ubu-main at 192.168.56.2 will be the box we use for management. Including setting up ssh key on ubu-main and copying it over to ubu-box-1 so we can freely ssh See the Linux series for step-by-step instructions. Set up two or more VirtualBoxes using Ubuntu. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |