DevOps

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…





Ansible_Logo

Ansible: The Authorized Key Module

In order for a user to ssh to a remote node, usually some form of authentication such as user credentials, SSH keys, etc are required. However Linux provides provision for password-less authentication too once a…