Add redirects for www.foo.sh site

This commit is contained in:
Timo Makinen 2020-09-09 11:55:22 +00:00
parent e0fad56127
commit b85e458781

View file

@ -55,3 +55,21 @@
site: wpad.foo.sh
- role: nginx/site
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