initialize_openshift_version.yml 536 B

12345678910111213141516
  1. ---
  2. # NOTE: requires openshift_facts be run
  3. - name: Determine openshift_version to configure on first master
  4. hosts: oo_first_master
  5. roles:
  6. - openshift_version
  7. # NOTE: We set this even on etcd hosts as they may also later run as masters,
  8. # and we don't want to install wrong version of docker and have to downgrade
  9. # later.
  10. - name: Set openshift_version for all hosts
  11. hosts: oo_all_hosts:!oo_first_master
  12. vars:
  13. openshift_version: "{{ hostvars[groups.oo_first_master.0].openshift_version }}"
  14. roles:
  15. - openshift_version