2692e8138c
Currently, Azure, vSphere, and OpenStack are supported. See https://github.com/weldr/lorax/pull/826 for more details about this new feature. I've called the upload library "lifted" as a reference to Seuss' The Lorax -- in the book, the Lorax lifts himself up by the seat of his pants through a hole in the smog clouds, and they start calling him the "Lifted Lorax." This adds new features to the /compose route under API v1
18 lines
489 B
YAML
18 lines
489 B
YAML
- hosts: localhost
|
|
connection: local
|
|
tasks:
|
|
- stat:
|
|
path: "{{ image_path }}"
|
|
register: image_stat
|
|
- set_fact:
|
|
image_id: "{{ image_name }}-{{ image_stat['stat']['checksum'] }}.vmdk"
|
|
- name: Upload image to vSphere
|
|
vsphere_copy:
|
|
login: "{{ username }}"
|
|
password: "{{ password }}"
|
|
host: "{{ host }}"
|
|
datacenter: "{{ datacenter }}"
|
|
datastore: "{{ datastore }}"
|
|
src: "{{ image_path }}"
|
|
path: "{{ folder }}/{{ image_id }}"
|