Ansible is an open-source IT automation software that automates the IT infrastructure. It creates an automated and consistent IT environment which makes IT task much easier and faster. Such an environment is self-regulating that can manage all the IT services without using any additional agent. It set up an automated environment for server, OS, Application and other IT services and configures them for better access. It also manages the deployment of any application on the system. Ansible uses to configure a variety of IT materials such as network devices, servers, database storage, cloud infrastructure, firewall, and any other virtual/physical platform. It automates the administrator’s task and allows fast access to various IT services. Ansible uses YAML language that describes system configuration to manage the IT services.
Ansible provides feature named handlers, which is like a task but will only run when called by a notifier in another task. This feature is important because your requirements for running a task may depend on the state of a service, existence of a file or a follow up tasks when state changed. We can make use of variables in notify and handlers which makes it more flexible. Ansible Handlers are used extensively in production and live environments as you always depend on something else to decide whether a task should run or not.