summaryrefslogtreecommitdiff
path: root/roles/openwrt/image/tasks/fetch.yml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2019-05-25 03:12:47 +0200
committerChristian Pointner <equinox@spreadspace.org>2019-05-25 03:12:47 +0200
commitf8ab68e40dda046171de02df6a7c12514f570bf8 (patch)
treeabe825df189af419216eb66c857cb3f8f089578f /roles/openwrt/image/tasks/fetch.yml
parentloop vs. with - the beginnings... (diff)
replace all with_items with loop
Diffstat (limited to 'roles/openwrt/image/tasks/fetch.yml')
-rw-r--r--roles/openwrt/image/tasks/fetch.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/roles/openwrt/image/tasks/fetch.yml b/roles/openwrt/image/tasks/fetch.yml
index 66a56572..21bc0c40 100644
--- a/roles/openwrt/image/tasks/fetch.yml
+++ b/roles/openwrt/image/tasks/fetch.yml
@@ -41,13 +41,13 @@
rescue:
- name: Delete downloaded artifacts
- file:
- path: "{{ item }}"
- state: absent
- with_items:
+ loop:
- "{{ openwrt_download_dir }}/{{ openwrt_tarball_basename }}.sha256"
- "{{ openwrt_download_dir }}/{{ openwrt_tarball_basename }}.sha256.asc"
- "{{ openwrt_download_dir }}/{{ openwrt_tarball_name }}"
+ file:
+ path: "{{ item }}"
+ state: absent
- name: the download has failed...
fail: