2017-08-24 09:09:52 +00:00
|
|
|
---
|
2017-02-17 03:59:40 +00:00
|
|
|
- name: check vsphere environment variables
|
2016-11-07 11:11:16 +00:00
|
|
|
fail:
|
2017-02-17 03:59:40 +00:00
|
|
|
msg: "{{ item.name }} is missing"
|
2019-04-29 06:00:20 +00:00
|
|
|
when: item.value is not defined or not item.value
|
2017-02-17 03:59:40 +00:00
|
|
|
with_items:
|
|
|
|
- name: vsphere_vcenter_ip
|
|
|
|
value: "{{ vsphere_vcenter_ip }}"
|
|
|
|
- name: vsphere_vcenter_port
|
|
|
|
value: "{{ vsphere_vcenter_port }}"
|
|
|
|
- name: vsphere_user
|
|
|
|
value: "{{ vsphere_user }}"
|
|
|
|
- name: vsphere_password
|
|
|
|
value: "{{ vsphere_password }}"
|
|
|
|
- name: vsphere_datacenter
|
|
|
|
value: "{{ vsphere_datacenter }}"
|
|
|
|
- name: vsphere_datastore
|
|
|
|
value: "{{ vsphere_datastore }}"
|
|
|
|
- name: vsphere_working_dir
|
|
|
|
value: "{{ vsphere_working_dir }}"
|
|
|
|
- name: vsphere_insecure
|
|
|
|
value: "{{ vsphere_insecure }}"
|