Skip to content
Snippets Groups Projects
Commit 0fffc0c2 authored by Sven-Hendrik Haase's avatar Sven-Hendrik Haase
Browse files

sources: Symlinks to sources

parent d7d4a083
No related branches found
No related tags found
No related merge requests found
......@@ -16,4 +16,4 @@
- { role: dbscripts, repos_domain: "repos.archlinux.org", svntogit_repos: "/srv/svntogit/repos", tags: ['dbscripts', 'archusers'] }
- { role: sudo, tags: ['sudo', 'archusers'] }
- { role: archweb, archweb_home: "/srv/http/archweb", tags: ['archweb'] }
- { role: sources, sources_domain: "sources.archlinux.org", tags: ['sources'] }
- { role: sources, sources_domain: "sources.archlinux.org", sources_dir: "/srv/sources", tags: ['sources'] }
......@@ -7,3 +7,12 @@
- name: make nginx log dir
file: path=/var/log/nginx/{{ sources_domain }} state=directory owner=http group=log mode=755
- name: make sources dir
file: path={{ sources_dir }} state=directory owner=root group=root mode=755
- name: make symlink to repo sources
file: path={{ sources_dir }}/sources src=/srv/ftp/sources state=link owner=root group=root mode=755
- name: make symlink to other sources
file: path={{ sources_dir }}/other src=/srv/ftp/other state=link owner=root group=root mode=755
......@@ -26,7 +26,7 @@ server {
ssl_trusted_certificate /etc/letsencrypt/live/{{ sources_domain }}/chain.pem;
include snippets/sslsettings.conf;
root /srv/ftp/sources;
root {{ sources_dir }};
autoindex on;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment