ansible/playbooks/include/proxies-rewrites.yml

59 lines
1.5 KiB
YAML
Raw Normal View History

- name: Set up some domain rewrites.
2015-02-21 22:28:28 +00:00
hosts: proxies-stg:proxies
user: root
gather_facts: True
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/private/ansible/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
handlers:
- include: "{{ handlers }}/restart_services.yml"
roles:
- role: httpd/domainrewrite
destname: admin
website: admin.fedoraproject.org
target: https://apps.fedoraproject.org/
2014-12-17 18:32:41 +00:00
- role: httpd/domainrewrite
destname: apache-status
website: admin.fedoraproject.org
path: /status
- role: httpd/domainrewrite
destname: 00-admin
website: admin.fedoraproject.org
path: ^/favicon.ico$
status: 301
2015-07-22 18:32:33 +02:00
target: https://fedoraproject.org/static/images/favicon.ico
- role: httpd/domainrewrite
destname: 00-docs
website: docs.fedoraproject.org
path: ^/favicon.ico$
status: 301
2015-07-22 18:32:33 +02:00
target: https://fedoraproject.org/static/images/favicon.ico
- role: httpd/domainrewrite
destname: 00-start
website: start.fedoraproject.org
path: ^/favicon.ico$
status: 301
2015-07-22 18:32:33 +02:00
target: https://fedoraproject.org/static/images/favicon.ico
- role: httpd/domainrewrite
destname: translate
website: translate.fedoraproject.org
# TODO - At some point, this will switch to fedora.zanata.org
target: https://fedora.transifex.net/
- role: httpd/domainrewrite
destname: 00-translate-icon
website: translate.fedoraproject.org
path: ^/favicon.ico$
status: 301
2015-07-22 18:32:33 +02:00
target: https://fedoraproject.org/static/images/favicon.ico