Articles by admin

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 : Running jobs as a specific user

Though ansible server will run jobs in managed nodes as a root user, we can specify the user account using which the jobs should get executed in the remote nodes. This is done using the…


redhat

Redhat – Boot Target

A Linux systems can boot up in various modes based on user preference. For example we can configure a node to start on GUI mode, where once the node boots, the user will get a GUI based…


Ansible_Logo

Ansible: Scheduling jobs using AT and CRON

Ansible provides a means to schedule jobs to be executed on a future time, weather it is a one time job or ones to be repeated at regular interval. This is done using the modules…


linux

AT command : Running one time future task

Unlike the the cron job is mainly used to schedule repetitive tasks, the “at” command is used to run a command just once, but schedule at a later time. That yum package to be installed…



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…


Ansible_Logo

Ansible: The The Known Hosts Module

When a user access a remote node using ssh for the first time, a prompt will appear asking the following: This key is not known by any other names. Are you sure you want to continue…


Ansible_Logo

Ansible: User management – Add user – ssh key

In this section we will try to understand few of the operations we can do using User module. In the below example, we will create anew user named shiju in the managed node, and will…