Introduction to Ansible automation
As defined on its website at https://www.ansible.com: Ansible is a foundation for building and operating automation across an organization.
In this section, we will see at a very introductory level how Ansible can be used to automate some tasks across different hosts.
Ansible uses YAML Ain’t Markup Language (YAML) files to define a set of tasks named playbooks that act over a set of hosts in an inventory. For each host, the tasks define the status desired and Ansible connects by default over SSH, executes the required actions, and then removes the files that were uploaded for the execution. It requires no daemon or agent to execute, and as the playbooks are text-based, they are the perfect candidate for a version control system (VCS) taking care of the changes, and so on.
For installing Ansible, we’ll execute dnf install ansible-core rhel-system-roles
, which will trigger the installation of the core and several dependencies...