Let's see how to transform the three playbooks we used to set up our web infrastructure (common_tasks.yaml, firstrun.yaml, and webserver.yaml) to fit this file organization. We have to remember that we also used two files (index.html.j2 and motd) in those roles, so we have to place these files properly too.
First, we are going to create the folder structure we have seen in the previous paragraph.
The easiest playbook to port is firstrun.yaml, since we only need to copy it into the playbooks folder. This playbook will remain a playbook because it's a set of operations that will have to be run just one time for each server.
We now move to the common_tasks.yaml playbook, which will need a little bit of a rework to match the role paradigm.