diff options
author | Michael Scherer <misc@zarb.org> | 2014-12-13 03:05:18 +0100 |
---|---|---|
committer | Michael Scherer <misc@zarb.org> | 2014-12-13 03:05:18 +0100 |
commit | 80eaa70d55a05918927792d16cd022365e18f2ca (patch) | |
tree | 4fffabf8ff7424e38450303288f9724cb91dbba0 /roles | |
parent | 548b13a73b32653da0169ab550136c2095a32ed6 (diff) |
Do not hardcode the list of git repositories
Diffstat (limited to 'roles')
-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 |