Re-organized all files and added a Vagrantfile
This commit is contained in:
26
playbooks/rails.yml
Normal file
26
playbooks/rails.yml
Normal 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
|
||||
Reference in New Issue
Block a user