commit | 384aa76584842d99efd35d3ce5ccdf57a0d05aee | [log] [tgz] |
---|---|---|
author | Andy Bavier <andy@onlab.us> | Thu May 03 15:55:38 2018 -0700 |
committer | Andy Bavier <andy@onlab.us> | Thu May 03 15:55:38 2018 -0700 |
tree | d2ee0d387d57f64b3d73644e94db43c0030cd178 | |
parent | 66f9f34a49fa2660b3c61b2b51dcd661b010e29b [diff] [blame] |
CORD-3010 Download image if 'path' is a URL Change-Id: I26f3f61af418438d3af01193a737482a390b8615
diff --git a/xos/synchronizer/steps/sync_controller_images.yaml b/xos/synchronizer/steps/sync_controller_images.yaml index 3c68294..0ce4d4b 100644 --- a/xos/synchronizer/steps/sync_controller_images.yaml +++ b/xos/synchronizer/steps/sync_controller_images.yaml
@@ -19,6 +19,18 @@ connection: local tasks: +{% if location and filepath %} + - file: + path: "{{ '{{' }} '{{ filepath }}' | dirname {{ '}}' }}" + state: directory + mode: 0755 + + - get_url: + url: "{{ location }}" + dest: "{{ filepath }}" + mode: 0644 +{% endif %} + - os_image: name: "{{ name }}" filename: "{{ filepath }}"