![]() ![]() The CentOS-7 VM was provisioned using Vagrant on the provider VirtualBox. More on the Ansible installation can be found here.įor the demo, I will be using a laptop as the control node and guest CentOS-7 VM as the managed node. ![]() ![]() However, all Control Node and Managed Node should have python and any necessary python libraries installed. Since Ansible command uses SSH to login, there is no need to install Ansible on all the host, it only needs to be installed on the Control Node. More details on the inventory file usage can be found here. In the inventory file, we can list multiple hosts under one single group, this will avoid repeating the same tasks multiple times for different host. The Managed Node’s hostname or IP are mentioned in a file which is called Inventory, this inventory filename is then specified as an input to the Ansible commands. We call this orchestration host the Control Node.Īnsible commands uses OpenSSH libraries to login to the target hosts for executing operational tasks, we call these target hosts Managed Node. Since it is a python package we can easily install Ansible using pip.Īnsible needs to be installed on only one host from which we will be orchestrating our operational tasks using Ansible commands (Ansible, Ansible-playbook). Ansible BasicsĪnsible is an open-source project written in python whoses source code is available on GitHub. I recommend going through the Ansible document link if you would like to learn more about it. ![]() Since this blog is mostly about managing PostgreSQL using Ansible, we will not go into detail of Ansible usages, however, we will go through some Ansible basics. More on the cloud provisioning can be found here
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |