Add redirects for www.foo.sh site
This commit is contained in:
parent
e0fad56127
commit
b85e458781
1 changed files with 18 additions and 0 deletions
|
@ -55,3 +55,21 @@
|
||||||
site: wpad.foo.sh
|
site: wpad.foo.sh
|
||||||
- role: nginx/site
|
- role: nginx/site
|
||||||
site: www.foo.sh
|
site: www.foo.sh
|
||||||
|
|
||||||
|
- tasks:
|
||||||
|
- name: create extra nginx config directories
|
||||||
|
file:
|
||||||
|
path: /etc/nginx/conf.d/www.foo.sh
|
||||||
|
state: directory
|
||||||
|
mode: 0755
|
||||||
|
owner: root
|
||||||
|
group: "{{ ansible_wheel }}"
|
||||||
|
- name: install redirects config
|
||||||
|
copy:
|
||||||
|
dest: /etc/nginx/conf.d/www.foo.sh/redirects.conf
|
||||||
|
src: |
|
||||||
|
location /collab/ { return 301 https://collab.foo.sh/; }
|
||||||
|
mode: 0644
|
||||||
|
owner: root
|
||||||
|
group: "{{ ansible_wheel }}"
|
||||||
|
notify: restart nginx
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue