enterprise.yml 883 B

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