mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2025-01-18 08:06:16 +01:00
These roles are very similar and can be merged into a single new role. Note: The archive mirror is changed from a 4-hour sync to minutely for conformity with the other two mirrors. In practice this doesn't matter as it was already taking over 4 hours to finish and was starting again right after its previous run.
15 lines
556 B
YAML
15 lines
556 B
YAML
- name: Create ssl cert for {{ item.value.mirror_domain }}
|
|
include_role:
|
|
name: certificate
|
|
vars:
|
|
domains: ["{{ item.value.mirror_domain }}"]
|
|
challenge: "DNS-01"
|
|
|
|
- name: Configure nginx for {{ item.value.mirror_domain }}
|
|
template: src=nginx.d.conf.j2 dest=/etc/nginx/nginx.d/{{ item.key }}.conf owner=root group=root mode=0644
|
|
notify: Reload nginx
|
|
tags: ['nginx']
|
|
|
|
- name: Make nginx log dir for {{ item.value.mirror_domain }}
|
|
file: path=/var/log/nginx/{{ item.value.mirror_domain }} state=directory owner=root group=root mode=0755
|