enterprise.yml 945 B

12345678910111213141516171819202122232425
  1. ---
  2. - name: Disable all repositories
  3. command: subscription-manager repos --disable="*"
  4. - set_fact:
  5. default_ose_version: '3.0'
  6. when: deployment_type == 'enterprise'
  7. - set_fact:
  8. default_ose_version: '3.3'
  9. when: deployment_type in ['atomic-enterprise', 'openshift-enterprise']
  10. - set_fact:
  11. ose_version: "{{ lookup('oo_option', 'ose_version') | default(default_ose_version, True) }}"
  12. - fail:
  13. msg: "{{ ose_version }} is not a valid version for {{ deployment_type }} deployment type"
  14. when: ( deployment_type == 'enterprise' and ose_version not in ['3.0'] ) or
  15. ( deployment_type in ['atomic-enterprise', 'openshift-enterprise'] and ose_version not in ['3.1', '3.2', '3.3'] )
  16. - name: Enable RHEL repositories
  17. command: subscription-manager repos \
  18. --enable="rhel-7-server-rpms" \
  19. --enable="rhel-7-server-extras-rpms" \
  20. --enable="rhel-7-server-ose-{{ ose_version }}-rpms"