From 1ed41f8d6709ecd6eb0276103b1449c0164a9e7c Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Sat, 13 Dec 2014 12:28:47 +0100 Subject: Add a automated group creation snippet --- roles/git_repositories/tasks/main.yml | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit