diff options
author | Michael Scherer <misc@zarb.org> | 2014-12-13 12:19:41 +0100 |
---|---|---|
committer | Michael Scherer <misc@zarb.org> | 2014-12-13 12:19:41 +0100 |
commit | e44510101bf8b5d05d21ef8c71be2bd91aaff994 (patch) | |
tree | a45e721c6cceea423b67f2c23cab2969b327379f /roles/git_repositories | |
parent | 423366732f0d5ac972fa09c95462cc26866bd5da (diff) |
Make the repository belonging to a group that will be used for ACL
Diffstat (limited to 'roles/git_repositories')
-rw-r--r-- | roles/git_repositories/defaults/main.yml | 2 | ||||
-rw-r--r-- | roles/git_repositories/tasks/main.yml | 1 |
2 files changed, 3 insertions, 0 deletions
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 |