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…
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 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…
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…
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 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…
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 allows admins to add lines to files. The below playbook adds a sudoers configuration file, and adds an entry to allow users of group “webadmin” sudo to all users and execute all commands as root….
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…
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…
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…