-
Notifications
You must be signed in to change notification settings - Fork 2
/
iceburg-sites.yml
34 lines (26 loc) · 1.01 KB
/
iceburg-sites.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
##
# prepare|configure|deploy sites to iceburg webservers
#
# prepare and configure nashville-app-1.iceburg.net
- name: "nashville-webservers"
hosts: nashville-webservers
remote_user: root
vars:
# define site names to disable
# @todo implement disabling of sites
site_disabled_list: []
default_http_site: www.iceburg.net
# site configurations are found in roles/pcd-sites/site/vars/<org>/<name>.yml
roles:
- {role: pcd-common, tags: ['prepare','configure','deploy']}
- {role: pcd-sites/apache_site, site_name: "www.iceburg.net", site_org: "iceburg" }
- {role: pcd-sites/apache_site, site_name: "staging.iceburg.net", site_org: "iceburg" }
tasks:
- name: redirect to default site
template:
src={{ PCD_SITE_ROLES }}/apache_site/templates/redirect_default_vhost.j2
dest=/etc/ansible/conf.d/apache/virtualhosts.enabled/000_default_redirect
notify:
- apache reload
when: default_http_site is defined and default_http_site