Skip to content
Snippets Groups Projects
Commit 97554746 authored by nimrod's avatar nimrod
Browse files

Use a variable for the location of the git repositories directory instead of a...

Use a variable for the location of the git repositories directory instead of a hard-coded value. Also owned by root:root instead of root:www-data since it's world writable.
parent 04ab10f2
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,8 @@ Debian Jessie.
Role Variables
--------------
None.
git_directory: The directory to be created and used for all git repositories
served.
Dependencies
------------
......
---
# defaults file for ansible-cgit
git_directory: /srv/git
......@@ -29,9 +29,9 @@
- name: Create git repostories directory
file:
path: /srv/git
path: '{{ git_directory }}'
owner: root
group: www-data
group: root
mode: '0777'
state: directory
......@@ -50,7 +50,7 @@
regexp: '{{ item.regexp|default(omit) }}'
insertbefore: '{{ item.insertbefore|default(omit) }}'
with_items:
- line: 'scan-path=/srv/git'
- line: 'scan-path={{ git_directory }}'
regexp: 'scan-path='
- line: 'css=/cgit/css/cgit.css'
regexp: '^css='
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment