mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2025-01-18 08:06:16 +01:00
24 lines
787 B
YAML
24 lines
787 B
YAML
- name: Create ssl cert
|
|
include_role:
|
|
name: certificate
|
|
vars:
|
|
domains: ["{{ sources_domain }}"]
|
|
|
|
- name: Set up nginx
|
|
template: src=nginx.d.conf.j2 dest=/etc/nginx/nginx.d/sources.conf owner=root group=root mode=0644
|
|
notify:
|
|
- Reload nginx
|
|
tags: ['nginx']
|
|
|
|
- name: Make nginx log dir
|
|
file: path=/var/log/nginx/{{ sources_domain }} state=directory owner=root group=root mode=0755
|
|
|
|
- name: Make sources dir
|
|
file: path={{ sources_dir }} state=directory owner=root group=root mode=0755
|
|
|
|
- name: Make symlink to repo sources
|
|
file: path={{ sources_dir }}/sources src=/srv/ftp/sources state=link owner=root group=root mode=0755
|
|
|
|
- name: Make symlink to other sources
|
|
file: path={{ sources_dir }}/other src=/srv/ftp/other state=link owner=root group=root mode=0755
|