I have a project which includes setting up 5 different servers on EC2, each with 2-3 roles.
So far, I created 3 file for each server:
-
X-provisioning, which create the EC2 instance using module: ec2
-
X-prepare, which apply the relevant roles for the server
-
X-setup, which includes the two types above
With more servers type, the project root dir is becoming crowded.
Is there a way to move the above files to a (new?) role?
In particular should, the X-provisioning be in a role?
What is a good practice for such project structure?
Thanks
Tzach