mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2025-01-10 03:40:18 +01:00
36 lines
717 B
YAML
36 lines
717 B
YAML
---
|
|
# This playbook deploys the whole application stack in this site.
|
|
|
|
# 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
|