Best practice in EC2 project tree

20 views
Skip to first unread message

Tzach Livyatan

unread,
Apr 12, 2015, 5:17:53 AM4/12/15
to ansible...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages