Ansible

Redhat Ansible

Ansible: The copy module

The module ansible.builtin.copy enables users to copy files from the controller node to managed nodes. It also helps to add/modify a destination file with a specific content. In the below example we use three groups in…

Read More




Ansible_Logo

Ansible: Configuration file

When executing a playbook, ansible uses certain values mentioned in the “ansible.cfg” file. This includes the location of “inventory” file, etc. The “ansible.cfg” file can be present in any of the following locations, and the…



Ansible_Logo

Ansible: The changed_when parameter

By default, when a playbook is executed, in the display mode stdout we will see various piece of information. IT provides us a the sections through which the execution is proceeding, displaying the name is…


Ansible_Logo

Ansible: Add and remove crontab files

Ansible can be used to remotely configure cron entries or even create a crontab files in managed nodes. The below example creates a crontab file named “/etc/cron.d/the-date-time” in the managed nodes. First let us verify…