From 9bac9b088426322f09eee2ed26d43c3e96973394 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Tue, 17 Jan 2017 22:07:01 +0100 Subject: Reindent and fix the role --- roles/git_repositories/tasks/main.yml | 10 +++++++--- 1 file 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 -- cgit