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.

22 lines
712 B

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