We don't need to setup any agents on the client servers.
How Ansible works?įirst of all, Ansible admin client connects to the target server using SSH. PS : It's not recommended to make modifications in the default inventory file, instead we can create our own custom inventory files at any locations as per our convenience. # - Include host ranges in one string as # - Remote hosts can have assignments in more than one groups
# - A hostname/ip can be a member of multiple groups # - You can enter hostnames or IP addresses # - Groups of hosts are delimited by elements # - Comments begin with the '#' character This file specifies several groups in which you can classify your hosts as your preference.Īs mentioned here, important things to note in creating the hosts file: We can edit this file to include our target systems. The default hosts file location is /etc/ansible/hosts. This files contains the list of target servers which are managed by Ansible. Once you've installed Ansible, the first thing is to understand its inventory file. In this article, I'll explain some of the basics about your first steps with Ansible. Modules can be written in any programming language.Ģ. The main advantage of using Ansible is as follows:ġ. Other systems similar to configuration management is CHEF, Puppet, SALT and Distelli, compared to all these ANSIBLE is the most simple and easily managed tool. It can also be used in managing application servers like Webservers, database servers and many others. It can be used for configuring our servers in production, staging and developments.
ANSIBLE RUN REMOTE COMMAND INSTALLPKG SOFTWARE
ANSIBLE is an open source software platform for configuration management, provisioning, application deployment and service orchestration.