summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorMichael Scherer <misc@zarb.org>2014-12-13 12:28:47 +0100
committerMichael Scherer <misc@zarb.org>2014-12-13 12:29:33 +0100
commit1ed41f8d6709ecd6eb0276103b1449c0164a9e7c (patch)
treea7c9a221a16cbe4870eaeef2a791b525417b9a92 /roles
parentc773b103fc068a853672982219f88218aa8be20d (diff)
Add a automated group creation snippet
Diffstat (limited to 'roles')
-rw-r--r--roles/git_repositories/tasks/main.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/git_repositories/tasks/main.yml b/roles/git_repositories/tasks/main.yml
index 364c550..dd68deb 100644
--- a/roles/git_repositories/tasks/main.yml
+++ b/roles/git_repositories/tasks/main.yml
@@ -7,6 +7,11 @@
- file: path={{ git_repositories_dir }} state=directory
+- group:
+ name: "{{ item.group | default(git_default_group) }}"
+ state: present
+ with_items: git_repositories
+
- file:
path: "{{ git_repositories_dir }}/{{ item.name }}"
state: directory