From 423366732f0d5ac972fa09c95462cc26866bd5da Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Sat, 13 Dec 2014 12:05:51 +0100 Subject: Add a git-daemon-export-ok only on public repo --- roles/git_repositories/tasks/main.yml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'roles/git_repositories') 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 -- cgit