Skip to content

Commit

Permalink
Replace wget with ansible get_url module
Browse files Browse the repository at this point in the history
  • Loading branch information
Yair Fried committed Feb 29, 2016
1 parent 197edae commit 40691aa
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions roles/ospd/overcloud/images/import/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 40691aa

Please sign in to comment.