summaryrefslogtreecommitdiffstats
path: root/playbooks/byo/rhel_subscribe.yml
blob: 06f914981f257cd06d11b99b291e0f57f590efbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
---
- include: openshift-cluster/initialize_groups.yml
  tags:
  - always

- name: Subscribe hosts, update repos and update OS packages
  # Temporarily reverting to OSEv3 until group standardization is complete
  hosts: OSEv3
  roles:
  - role: rhel_subscribe
    when:
    - deployment_type == 'openshift-enterprise'
    - ansible_distribution == "RedHat"
    - lookup('oo_option', 'rhel_skip_subscription') | default(rhsub_skip, True) | default('no', True) | lower in ['no', 'false']
  - role: openshift_repos
  - role: os_update_latest