diff options
-rw-r--r-- | roles/git_repositories/tasks/main.yml | 12 |
1 files changed, 4 insertions, 8 deletions
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 |