Ansible

Ansible is an open source automation tool for system administration especially in 202204081225. It could be used for system monitoring, #202205041217, disaster recovery, system maintenance, policy enforcement etc. It is one of the widely adopted #202206061419 tool.

To use Ansible, we need to install it into a node, which will become the management node or control node where we will place our configuration files or 202204272036# in here. Ansible will then run on remote hosts called managed nodes using the playbooks without actually installed into them. By default, it uses 202205191908 as the mean of communication between management node and managed nodes. We could configure it in 202204302318# to use SFTP or SCP instead. The SSH public key needs to be transferred to the managed nodes.

For network devices and API endpoints, Ansible will run the module codes locally in the control node taking advantages of parallelism. To increase scalability, one could install 202204292323# as a cluster. For Linux or Windows hosts, it will run the module codes remotely in the managed nodes since these machines have facility to execute commands by themselves. The module codes are copied to those remote machines and executed there. These remote hosts will then send back the result of the module codes in JSON format.

Ansible also stores a list of nodes where the playbooks ran against that is managed by itself with 202204272043#.

It contains command-line interface (CLI) which includes ansible, ansible-playbook and ansible-doc, the language for configuration such as YAML, framework for plugins and functions for control flows. There are several 202205051149# into the management node, one example is by using ansible-galaxy CLI tool.

Training

  • Red Hat Automation Adoption Journey
  • Red Hat Linux Automation with Ansible (RH294)
Links to this page
#networking #linux #devops #floss #automation #iac