ansible-role-apache/lamp_haproxy/site.yml

37 lines
717 B
YAML
Raw Normal View History

2013-03-12 08:35:13 +01:00
---
# This playbook deploys the whole application stack in this site.
2013-03-12 08:35:13 +01:00
# Apply common configuration to all hosts
- hosts: all
roles:
- common
# Configure and deploy database servers.
- hosts: dbservers
user: root
roles:
- db
# Configure and deploy the web servers. Note that we include two roles here,
# the 'base-apache' role which simply sets up Apache, and 'web' which includes
# our example web application.
- hosts: webservers
user: root
roles:
- base-apache
- web
# Configure and deploy the load balancer(s).
- hosts: lbservers
user: root
roles:
- haproxy
# Configure and deploy the Nagios monitoring node(s).
- hosts: monitoring
user: root
roles:
- base-apache
- nagios