summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorMichael Scherer <misc@redhat.com>2017-01-17 22:07:01 +0100
committerMichael Scherer <misc@redhat.com>2017-01-17 22:07:01 +0100
commit9bac9b088426322f09eee2ed26d43c3e96973394 (patch)
tree08c75e2e2c4ed5005a46765b3e61d54941c2971d /roles
parent470f279528e5006aee6cf1a5bdbdbcfe14c8dff0 (diff)
Reindent and fix the role
Diffstat (limited to 'roles')
-rw-r--r--roles/git_repositories/tasks/main.yml10
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