From e44510101bf8b5d05d21ef8c71be2bd91aaff994 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Sat, 13 Dec 2014 12:19:41 +0100 Subject: Make the repository belonging to a group that will be used for ACL --- roles/git_repositories/defaults/main.yml | 2 ++ roles/git_repositories/tasks/main.yml | 1 + 2 files changed, 3 insertions(+) create mode 100644 roles/git_repositories/defaults/main.yml (limited to 'roles') diff --git a/roles/git_repositories/defaults/main.yml b/roles/git_repositories/defaults/main.yml new file mode 100644 index 0000000..c476279 --- /dev/null +++ b/roles/git_repositories/defaults/main.yml @@ -0,0 +1,2 @@ +--- +git_default_group: git diff --git a/roles/git_repositories/tasks/main.yml b/roles/git_repositories/tasks/main.yml index bcc4628..364c550 100644 --- a/roles/git_repositories/tasks/main.yml +++ b/roles/git_repositories/tasks/main.yml @@ -11,6 +11,7 @@ path: "{{ git_repositories_dir }}/{{ item.name }}" state: directory mode: "{% if item.private is defined and item.private %}750{% else %}755{% endif %}" + group: "{{ item.group | default(git_default_group) }}" with_items: git_repositories - shell: creates={{ git_repositories_dir }}/{{ item.name }}/config chdir={{ git_repositories_dir }}/{{ item.name }} git init --bare -q --shared=group -- cgit