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

- include: ../common/openshift-cluster/std_include.yml
  tags:
  - always

- name: Subscribe hosts, update repos and update OS packages
  hosts: g_all_hosts
  roles:
  - role: rhel_subscribe
    when: deployment_type in ['atomic-enterprise', 'enterprise', 'openshift-enterprise'] and
          ansible_distribution == "RedHat" and
          lookup('oo_option', 'rhel_skip_subscription') | default(rhsub_skip, True) |
          default('no', True) | lower in ['no', 'false']
  - openshift_repos
  - os_update_latest