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: