-- # This playbook deploys the whole application stack for wrestlingdev # - name: apply common configuration to all nodes hosts: all remote_user: root roles: - common - name: configure and deploy the webservers and application code hosts: webservers remote_user: root roles: - applicationvars - web - name: configure and deploy the rails workers and application code hosts: workers remote_user: root roles: - applicationvars - worker - name: deploy first db and create cluster hosts: dbfirstclustermachine remote_user: root roles: - db - firstdb - name: deploy mysql and configure database hosts: dbservers remote_user: root roles: - db - name: deploy haproxy hosts: proxy remote_user: root roles: - proxy