diff options
author | Michael Scherer <misc@zarb.org> | 2014-12-13 12:05:29 +0100 |
---|---|---|
committer | Michael Scherer <misc@zarb.org> | 2014-12-13 12:05:29 +0100 |
commit | a889122ae89aa6547f873343d1bc74130004e047 (patch) | |
tree | 211b48bad67f6e0207bfbe4089b9007f7c4bdd41 /roles | |
parent | 80eaa70d55a05918927792d16cd022365e18f2ca (diff) |
Set permission appropriatly on private repository
Diffstat (limited to 'roles')
-rw-r--r-- | roles/git_repositories/tasks/main.yml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/roles/git_repositories/tasks/main.yml b/roles/git_repositories/tasks/main.yml index 1e1b476..aa08111 100644 --- a/roles/git_repositories/tasks/main.yml +++ b/roles/git_repositories/tasks/main.yml @@ -7,7 +7,10 @@ - file: path={{ git_repositories_dir }} state=directory -- file: path={{ git_repositories_dir }}/{{ item.name }} state=directory +- file: + path: "{{ git_repositories_dir }}/{{ item.name }}" + state: directory + mode: "{% if item.private is defined and item.private %}750{% else %}755{% endif %}" with_items: git_repositories - shell: creates={{ git_repositories_dir }}/{{ item.name }}/config chdir={{ git_repositories_dir }}/{{ item.name }} git init --bare -q --shared=group |