Victor Castell   Dkron    About

Ansible tip 1

As a general rule always tag your roles.

Tagging individual role tasks, allows you to selectively apply just one part of the configuration when you need it.

While the advantatges of this may not seem clear at the beginning, you have to take into account that ansible is not the fastest kid on the block. Doing this always, allows great flexibility and high level of granularity when running your playbooks.

This is an example of a mongodb setup role:

As a best practice I always tag the role with the role name.

Written on May 13, 2014.