Browse Source

Set up redirects.

master
Chris Smith 9 years ago
parent
commit
6b1baf23b7
4 changed files with 19 additions and 1 deletions
  1. 3
    0
      inventories/inventory.yml
  2. 1
    0
      playbooks/all.yml
  3. 14
    0
      playbooks/redirects.yml
  4. 1
    1
      roles

+ 3
- 0
inventories/inventory.yml View File

@@ -7,3 +7,6 @@ lon1.chameth.com
7 7
 
8 8
 [backups]
9 9
 lon1.chameth.com
10
+
11
+[redirects]
12
+lon1.chameth.com

+ 1
- 0
playbooks/all.yml View File

@@ -2,3 +2,4 @@
2 2
 - include: common.yml
3 3
 - include: backups.yml
4 4
 - include: irc.yml
5
+- include: redirects.yml

+ 14
- 0
playbooks/redirects.yml View File

@@ -0,0 +1,14 @@
1
+---
2
+- hosts: redirects
3
+  roles:
4
+    - role: nginx-redirects
5
+      hosts:
6
+        chris.smith.name:
7
+          fallback: https://www.chameth.com/
8
+        md87.co.uk:
9
+          fallback: https://www.chameth.com/
10
+        apps.md87.co.uk:
11
+          fallback: https://www.chameth.com/
12
+        www.md87.co.uk:
13
+          fallback: https://www.chameth.com/
14
+

+ 1
- 1
roles

@@ -1 +1 @@
1
-Subproject commit 6d0516e7abd9110f708425a3fc63ce835ec2058a
1
+Subproject commit 65e4474ccbc666cf02fee49c2eb8e5727c986b29

Loading…
Cancel
Save