1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2025-01-18 08:06:16 +01:00
infrastructure/roles/archive_web/tasks/main.yml
Jelle van der Waa 5dc453cc21 Split archive role into archive_web for archive-mirrors
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.
2020-12-12 18:32:23 +00:00

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