diff --git a/playbooks/proxy.yml b/playbooks/proxy.yml index 916b575..c5e789d 100644 --- a/playbooks/proxy.yml +++ b/playbooks/proxy.yml @@ -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