Part 9 – Ansible Roles

As of now we have written playbooks that include all the details like hosts, variables, tasks and plays. This is not an ideal way if we have many tasks and lots and lots of plays to be included, the best way to do it is to separate each item into its own directory and this is how its done in prodution especially if a organization use cloud. So let’s do some Role things. Continue reading


#include, #main-yml, #roles, #roles-structure

Part 8 – Ansible Play Recap, vars, Notify, Handlers

PlayBooks are a great thing, but how are we going to handle exceptions, what about errors during the tasks? what if we want to specify a condition before executing the task? How are we going to declare variables? This post is for those things. Continue reading

#handlers, #limit, #notify, #recap, #vars, #when