Skip to content

Commit

Permalink
Merge pull request #64 from yfried-redhat/get_url
Browse files Browse the repository at this point in the history
Replace wget with ansible get_url module
  • Loading branch information
tkammer-zz committed Mar 2, 2016
2 parents 90bdc0c + 40691aa commit bc86ce4
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 bc86ce4

Please sign in to comment.