Re-organized all files and added a Vagrantfile

This commit is contained in:
2016-02-02 11:40:47 -05:00
parent dd4fd53ce7
commit 8a55e9f946
19 changed files with 157 additions and 96 deletions

26
playbooks/rails.yml Normal file
View File

@@ -0,0 +1,26 @@
---
# This playbook deploys the rails application
- name: Apply common configuration to all nodes
hosts: web:worker
user: root
tasks:
- include: ../roles/common/tasks/main.yml
- name: Apply variables to all nodes
hosts: web:worker
user: root
tasks:
- include: ../roles/rails/tasks/vars.yml
- name: Apply web tasks to web nodes
hosts: web
user: root
tasks:
- include: ../roles/rails/tasks/web.yml
- name: Apply worker tasks to worker nodes
hosts: worker
user: root
tasks:
- include: ../roles/rails/tasks/worker.yml