|
|
|
@ -3,13 +3,13 @@ |
|
|
|
|
|
|
|
|
|
# Apply common configuration to all hosts |
|
|
|
|
- hosts: all |
|
|
|
|
user: root |
|
|
|
|
remote_user: root |
|
|
|
|
roles: |
|
|
|
|
- common |
|
|
|
|
|
|
|
|
|
# Configure and deploy database servers. |
|
|
|
|
- hosts: dbservers |
|
|
|
|
user: root |
|
|
|
|
remote_user: root |
|
|
|
|
roles: |
|
|
|
|
- db |
|
|
|
|
|
|
|
|
@ -17,20 +17,20 @@ |
|
|
|
|
# the 'base-apache' role which simply sets up Apache, and 'web' which includes |
|
|
|
|
# our example web application. |
|
|
|
|
- hosts: webservers |
|
|
|
|
user: root |
|
|
|
|
remote_user: root |
|
|
|
|
roles: |
|
|
|
|
- base-apache |
|
|
|
|
- web |
|
|
|
|
|
|
|
|
|
# Configure and deploy the load balancer(s). |
|
|
|
|
- hosts: lbservers |
|
|
|
|
user: root |
|
|
|
|
remote_user: root |
|
|
|
|
roles: |
|
|
|
|
- haproxy |
|
|
|
|
|
|
|
|
|
# Configure and deploy the Nagios monitoring node(s). |
|
|
|
|
- hosts: monitoring |
|
|
|
|
user: root |
|
|
|
|
remote_user: root |
|
|
|
|
roles: |
|
|
|
|
- base-apache |
|
|
|
|
- nagios |
|
|
|
|