From 40691aa8decfb36dc917d540c6f476cfb61d5125 Mon Sep 17 00:00:00 2001 From: Yair Fried Date: Mon, 29 Feb 2016 17:58:57 +0200 Subject: [PATCH] Replace wget with ansible get_url module --- roles/ospd/overcloud/images/import/tasks/main.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/roles/ospd/overcloud/images/import/tasks/main.yml b/roles/ospd/overcloud/images/import/tasks/main.yml index fc5b2e35ce..6e5c16cd85 100644 --- a/roles/ospd/overcloud/images/import/tasks/main.yml +++ b/roles/ospd/overcloud/images/import/tasks/main.yml @@ -1,13 +1,8 @@ --- -- name: ensure wget is installed - yum: - name: wget - state: latest - - name: download the pre-built overcloud images - shell: > - wget --quiet -c -O ~/{{ item.value }} - "{{ installer.overcloud.images.server }}/{{ item.value }}" + get_url: + dest: "~/{{ item.value }}" + url: "{{ installer.overcloud.images.server }}/{{ item.value }}" with_dict: "{{ installer.overcloud.images.files }}" - name: untar the images