vsphere.yml 706 B

123456789101112131415161718192021
  1. ---
  2. - name: Create cloud config
  3. template:
  4. dest: "{{ openshift.common.config_base }}/cloudprovider/vsphere.conf"
  5. src: vsphere.conf.j2
  6. when:
  7. - openshift_cloudprovider_vsphere_username is defined
  8. - openshift_cloudprovider_vsphere_password is defined
  9. - openshift_cloudprovider_vsphere_host is defined
  10. - openshift_cloudprovider_vsphere_datacenter is defined
  11. - openshift_cloudprovider_vsphere_datastore is defined
  12. - name: Configure vsphere svc account
  13. import_tasks: vsphere-svc.yml
  14. when:
  15. - openshift_version | version_compare('3.9', '>=')
  16. - inventory_hostname == openshift_master_hosts[0]
  17. - name: Modify controller args
  18. import_tasks: update-vsphere.yml
  19. notify: restart master