27 lines
554 B
YAML
27 lines
554 B
YAML
---
|
|
# 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
|