From 80eaa70d55a05918927792d16cd022365e18f2ca Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Sat, 13 Dec 2014 03:05:18 +0100 Subject: Do not hardcode the list of git repositories --- roles/git_repositories/tasks/main.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'roles/git_repositories') diff --git a/roles/git_repositories/tasks/main.yml b/roles/git_repositories/tasks/main.yml index b6bc396..1e1b476 100644 --- a/roles/git_repositories/tasks/main.yml +++ b/roles/git_repositories/tasks/main.yml @@ -7,13 +7,9 @@ - file: path={{ git_repositories_dir }} state=directory -- file: path={{ git_repositories_dir }}/{{ item }} state=directory - with_items: - - public - - private +- file: path={{ git_repositories_dir }}/{{ item.name }} state=directory + with_items: git_repositories -- shell: creates={{ git_repositories_dir }}/{{ item }}/config chdir={{ git_repositories_dir }}/{{ item }} git init --bare -q --shared=group - with_items: - - public - - private +- shell: creates={{ git_repositories_dir }}/{{ item.name }}/config chdir={{ git_repositories_dir }}/{{ item.name }} git init --bare -q --shared=group + with_items: git_repositories -- cgit