Skip to content

Commit 3a5d56d

Browse files
committed
with items instead of loop (2.5 supported)
1 parent d0ee5be commit 3a5d56d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tasks/main.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
get_url:
66
url: "{{ item.source }}"
77
dest: "{{ item.dest }}"
8-
loop:
8+
with_items:
99
- { source: 'http://linuxsoft.cern.ch/wlcg/RPM-GPG-KEY-wlcg', dest: '/etc/pki/rpm-gpg/RPM-GPG-KEY-wlcg' }
1010
- { source: 'http://research.cs.wisc.edu/htcondor/yum/repo.d/htcondor-stable-rhel7.repo', dest: '/etc/yum.repos.d/htcondor-stable-rhel7.repo' }
1111
- { source: 'http://repository.egi.eu/community/software/preview.repository/2.0/releases/repofiles/centos-7-x86_64.repo', dest: '/etc/yum.repos.d/centos-7-x86_64.repo' }
@@ -30,14 +30,14 @@
3030
template:
3131
src: "{{ item.source }}"
3232
dest: "{{ item.dest }}"
33-
loop:
33+
with_items:
3434
- { source: 'templates/condor_config', dest: '/etc/condor/condor_config' }
3535
- { source: 'templates/get_proxy.py', dest: '/etc/condor/get_proxy.py' }
3636

3737
- name: copy job example
3838
copy:
3939
src: "{{ item.source }}"
4040
dest: "{{ item.dest }}"
41-
loop:
41+
with_items:
4242
- { source: 'files/simple-job.sh', dest: '/opt/simple-job.sh' }
4343
- { source: 'files/simple-job.sub', dest: '/opt/simple-job.sub' }

0 commit comments

Comments
 (0)