provision_resources.yml 453 B

123456789101112
  1. ---
  2. - name: Create the OpenStack resources for cluster installation or scaleup
  3. any_errors_fatal: true
  4. hosts: localhost
  5. tasks:
  6. - name: retrieve cluster name from the environment if present
  7. set_fact:
  8. openshift_openstack_stack_name: "{{ lookup('env', 'OPENSHIFT_CLUSTER') | ternary (lookup('env', 'OPENSHIFT_CLUSTER'), omit) }}"
  9. - name: provision cluster
  10. import_role:
  11. name: openshift_openstack
  12. tasks_from: provision.yml