summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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