summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorMichael Scherer <misc@redhat.com>2017-01-17 22:09:02 +0100
committerMichael Scherer <misc@redhat.com>2017-01-17 22:09:02 +0100
commit8c70b3521ea6d4b8aa79044e6635cde6f638f612 (patch)
treebb3fa5f53e56e0759187d0768d2a7a07fba25fcf /roles
parent9bac9b088426322f09eee2ed26d43c3e96973394 (diff)
Fix role for bare variable change in ansible
Diffstat (limited to 'roles')
-rw-r--r--roles/git_repositories/tasks/main.yml12
1 files changed, 6 insertions, 6 deletions
diff --git a/roles/git_repositories/tasks/main.yml b/roles/git_repositories/tasks/main.yml
index 1af1be3..4258c8a 100644
--- a/roles/git_repositories/tasks/main.yml
+++ b/roles/git_repositories/tasks/main.yml
@@ -14,33 +14,33 @@
- group:
name: "{{ item.group | default(git_default_group) }}"
state: present
- with_items: git_repositories
+ with_items: "{{ git_repositories }}"
- file:
path: "{{ git_repositories_dir }}/{{ item.name }}"
state: directory
mode: "{% if item.private | default(False) %}2770{% else %}2775{% endif %}"
group: "{{ item.group | default(git_default_group) }}"
- with_items: git_repositories
+ with_items: "{{git_repositories }}"
- shell: creates={{ git_repositories_dir }}/{{ item.name }}/config chdir={{ git_repositories_dir }}/{{ item.name }} git init --bare -q --shared=group
- with_items: git_repositories
+ with_items: "{{ git_repositories }}"
# refactor this one and the next if https://github.com/ansible/ansible-modules-core/pull/520 is merged
- file:
path: "{{ git_repositories_dir }}/{{ item.name }}/git-daemon-export-ok"
state: absent
when: item.private is defined and item.private
- with_items: git_repositories
+ with_items: "{{ git_repositories }}"
- copy:
dest: "{{ git_repositories_dir }}/{{ item.name }}/git-daemon-export-ok"
content: ""
when: item.private is not defined or not item.private
- with_items: git_repositories
+ with_items: "{{ git_repositories }}"
- copy:
dest: "{{ git_repositories_dir }}/{{ item.name }}/description"
content: "{{ item.desc }}"
- with_items: git_repositories
+ with_items: "{{ git_repositories }}"