Ansible Pattern: Calculation Step
When there are a lot of paths, URLs or other strings to keep track of in a role it can get really messy. Especially if the some of them contain variables and are used in multiple places. Often to make roles easier to work with, I place a task at the tops of the role that calculates the variables so that they can easily be referred to later.
It important to note that the set_fact role can set multiple facts at the same time.
[Read More]