You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
710 B

  1. - name: check vsphere environment variables
  2. fail:
  3. msg: "{{ item.name }} is missing"
  4. when: item.value is not defined or item.value == ''
  5. with_items:
  6. - name: vsphere_vcenter_ip
  7. value: "{{ vsphere_vcenter_ip }}"
  8. - name: vsphere_vcenter_port
  9. value: "{{ vsphere_vcenter_port }}"
  10. - name: vsphere_user
  11. value: "{{ vsphere_user }}"
  12. - name: vsphere_password
  13. value: "{{ vsphere_password }}"
  14. - name: vsphere_datacenter
  15. value: "{{ vsphere_datacenter }}"
  16. - name: vsphere_datastore
  17. value: "{{ vsphere_datastore }}"
  18. - name: vsphere_working_dir
  19. value: "{{ vsphere_working_dir }}"
  20. - name: vsphere_insecure
  21. value: "{{ vsphere_insecure }}"