diff options
Diffstat (limited to 'roles/git_repositories')
-rw-r--r-- | roles/git_repositories/tasks/main.yml | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/roles/git_repositories/tasks/main.yml b/roles/git_repositories/tasks/main.yml index 4463e8d..1af1be3 100644 --- a/roles/git_repositories/tasks/main.yml +++ b/roles/git_repositories/tasks/main.yml @@ -1,11 +1,15 @@ --- -- yum: name={{ item }} state=installed +- package: + name: "{{ item }}" + state: installed with_items: - git - command: /sbin/semanage fcontext -t git_user_content_t -a '{{ git_repositories_dir }}(/.*)?' -- file: path={{ git_repositories_dir }} state=directory +- file: + path: "{{ git_repositories_dir }}" + state: directory - group: name: "{{ item.group | default(git_default_group) }}" @@ -15,7 +19,7 @@ - file: path: "{{ git_repositories_dir }}/{{ item.name }}" state: directory - mode: "{% if item.private is defined and item.private %}2770{% else %}2775{% endif %}" + mode: "{% if item.private | default(False) %}2770{% else %}2775{% endif %}" group: "{{ item.group | default(git_default_group) }}" with_items: git_repositories |