mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2026-09-10 23:20:29 +02:00
these are all the systems that the new redirect snippet can be cleanly applied to. there are a few others not included, that will need a more manual approach: - gitlab (multiple domains) - mta.sts(multiple domains) - archweb(mutltiple domains, snippets) - buildbtw(dynamic dev domains) - redirects(different structure) - public html(multiple domains) - archweb maintenence(different structure) - maintenence(different structure) some of these might be solvable by tweaking the snippet to accept multiple domains. I'll look into this Co-authored-by: Christian Heusel <christian@heusel.eu>
25 lines
460 B
YAML
25 lines
460 B
YAML
- name: Setup HTTP redirect
|
|
include_role:
|
|
name: http_redirect
|
|
vars:
|
|
domain: "{{ archive_domain }}"
|
|
|
|
- name: Set up nginx
|
|
template:
|
|
src: nginx.d.conf.j2
|
|
dest: /etc/nginx/nginx.d/archive.conf
|
|
owner: root
|
|
group: root
|
|
mode: '0644'
|
|
notify:
|
|
- Reload nginx
|
|
tags: ['nginx']
|
|
|
|
- name: Make nginx log dir
|
|
file:
|
|
path: /var/log/nginx/{{ archive_domain }}
|
|
state: directory
|
|
owner: root
|
|
group: root
|
|
mode: '0755'
|