enterprise.yml 639 B

123456789101112131415161718
  1. ---
  2. - set_fact:
  3. openshift_release: "{{ openshift_release[1:] }}"
  4. when:
  5. - openshift_release is defined
  6. - openshift_release[0] == 'v'
  7. - name: Disable all repositories
  8. command: subscription-manager repos --disable="*"
  9. - name: Enable RHEL repositories
  10. command: subscription-manager repos \
  11. --enable="rhel-7-server-rpms" \
  12. --enable="rhel-7-server-extras-rpms" \
  13. --enable="rhel-7-server-ose-{{ (openshift_release | default('')).split('.')[0:2] | join('.') }}-rpms" \
  14. --enable="rhel-7-fast-datapath-rpms"
  15. register: subscribe_repos
  16. until: subscribe_repos | succeeded