As described in my previous post, Ansible is very, very powerful tool for your daily automation tasks. I am posting this simple role in order to demonstrate some of the capabilities of Ansible. This is a separate role, which is used to update /etc/resolv.conf on a group of hosts (inventory) with your own.

For convenience sake, I am posting this in my github repo as well. First, lets start with tasks/main.yml. This is the main working "script", which does the magic happen:

Ansible is a great tool for helping sysadmins doing their day-to-day tasks in a more automated manner. If you manage alot of systems, then you sure know how cumbersome it can be if you have to do something repetitive manually on them.

Ansible is a free automation software, that helps you develop your own recipes (called roles in ansible terminology), which can be used to automate almost everything.

This software is simple automation engine, that has built-in "rules" in terms of directories and files. I am posting a bash script, that deploys a preferred ansible working environment, instead of creating all the initial files and directories yourself. It is used for new projects only.