summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Scherer <misc@zarb.org>2014-12-13 12:05:51 +0100
committerMichael Scherer <misc@zarb.org>2014-12-13 12:05:51 +0100
commit423366732f0d5ac972fa09c95462cc26866bd5da (patch)
treeb7456437506415b82195ebf95b3adcb30e55c898
parenta889122ae89aa6547f873343d1bc74130004e047 (diff)
Add a git-daemon-export-ok only on public repo
-rw-r--r--roles/git_repositories/tasks/main.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/git_repositories/tasks/main.yml b/roles/git_repositories/tasks/main.yml
index aa08111..bcc4628 100644
--- a/roles/git_repositories/tasks/main.yml
+++ b/roles/git_repositories/tasks/main.yml
@@ -16,3 +16,7 @@
- shell: creates={{ git_repositories_dir }}/{{ item.name }}/config chdir={{ git_repositories_dir }}/{{ item.name }} git init --bare -q --shared=group
with_items: git_repositories
+- file:
+ path: "{{ git_repositories_dir }}/{{ item.name }}/git-daemon-export-ok"
+ state: "{% if item.private is defined and item.private %}absent{% else %}touch{% endif %}"
+ with_items: git_repositories