mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2025-01-18 08:06:16 +01:00
To simplify the archive role, split it up in the web serving part for the archive-mirrors, gemini and keep the archive role for only the archive operation. This simplifies the new role as only two lines are required to setup the the archive mirror website.
21 lines
349 B
YAML
21 lines
349 B
YAML
---
|
|
|
|
- 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
|