version.yml 1.2 KB

1234567891011121314151617181920212223
  1. ---
  2. - name: Determine openshift_version to configure on first master
  3. hosts: "{{ l_openshift_version_determine_hosts | default('oo_first_master') }}"
  4. tasks:
  5. - include_role:
  6. name: openshift_version
  7. tasks_from: first_master.yml
  8. # NOTE: We set this even on etcd hosts as they may also later run as masters,
  9. # and we don't want to install wrong version of docker and have to downgrade
  10. # later.
  11. - name: Set openshift_version for etcd, node, and master hosts
  12. hosts: "{{ l_openshift_version_set_hosts | default(l_default_version_set_hosts) }}"
  13. vars:
  14. l_default_version_set_hosts: "oo_etcd_to_config:oo_nodes_to_config:oo_masters_to_config:!oo_first_master"
  15. l_first_master_openshift_version: "{{ hostvars[groups.oo_first_master.0].openshift_version }}"
  16. l_first_master_openshift_pkg_version: "{{ hostvars[groups.oo_first_master.0].openshift_pkg_version | default('') }}"
  17. l_first_master_openshift_image_tag: "{{ hostvars[groups.oo_first_master.0].openshift_image_tag}}"
  18. tasks:
  19. - set_fact:
  20. openshift_version: "{{ l_first_master_openshift_version }}"
  21. openshift_pkg_version: "{{ l_first_master_openshift_pkg_version }}"
  22. openshift_image_tag: "{{ l_first_master_openshift_image_tag }}"