summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2018-07-20 14:07:05 +0200
committerTharre <tharre3@gmail.com>2018-07-20 14:09:04 +0200
commit2dc2bc9e0a956d3abebd42970b08530f126f2dd7 (patch)
treeccf14a737dab6e1e34d9a3a7c6167978aa328137
parent9fce696c7e8ec25901fc30033f47562e74deeb0e (diff)
downloadinfrastructure-2dc2bc9e0a956d3abebd42970b08530f126f2dd7.tar.gz
infrastructure-2dc2bc9e0a956d3abebd42970b08530f126f2dd7.tar.xz
infrastructure-2dc2bc9e0a956d3abebd42970b08530f126f2dd7.zip
gitolite: only set chmod the /repository path
So we don't accidentally make private keys in .ssh/ visible.
-rw-r--r--roles/gitolite/tasks/main.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/gitolite/tasks/main.yml b/roles/gitolite/tasks/main.yml
index e017399..03987dc 100644
--- a/roles/gitolite/tasks/main.yml
+++ b/roles/gitolite/tasks/main.yml
@@ -41,9 +41,9 @@
group: "{{ git_group }}"
backup: yes
-- name: Set permissions on {{ git_dir }}
+- name: Set permissions on {{ git_dir }}/repositories
file:
- path: "{{ git_dir }}"
+ path: "{{ git_dir }}/repositories"
recurse: yes
mode: "g+rX"
owner: "{{ git_user }}"